@@ -71,6 +71,9 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
7171 Function : & tools.FunctionDefinition {
7272 Name : "create_directory" ,
7373 Description : "Create a new directory or ensure a directory exists. Can create multiple nested directories in one operation." ,
74+ Annotations : tools.ToolAnnotation {
75+ Title : "Create Directory" ,
76+ },
7477 Parameters : tools.FunctionParamaters {
7578 Type : "object" ,
7679 Properties : map [string ]any {
@@ -90,6 +93,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
9093 Description : "Get a recursive tree view of files and directories as a JSON structure." ,
9194 Annotations : tools.ToolAnnotation {
9295 ReadOnlyHint : & []bool {true }[0 ],
96+ Title : "Directory Tree" ,
9397 },
9498 Parameters : tools.FunctionParamaters {
9599 Type : "object" ,
@@ -112,6 +116,9 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
112116 Function : & tools.FunctionDefinition {
113117 Name : "edit_file" ,
114118 Description : "Make line-based edits to a text file. Each edit replaces exact line sequences with new content." ,
119+ Annotations : tools.ToolAnnotation {
120+ Title : "Edit File" ,
121+ },
115122 Parameters : tools.FunctionParamaters {
116123 Type : "object" ,
117124 Properties : map [string ]any {
@@ -153,6 +160,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
153160 Description : "Retrieve detailed metadata about a file or directory." ,
154161 Annotations : tools.ToolAnnotation {
155162 ReadOnlyHint : & []bool {true }[0 ],
163+ Title : "Get File Info" ,
156164 },
157165 Parameters : tools.FunctionParamaters {
158166 Type : "object" ,
@@ -173,6 +181,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
173181 Description : "Returns a list of directories that the server has permission to access." ,
174182 Annotations : tools.ToolAnnotation {
175183 ReadOnlyHint : & []bool {true }[0 ],
184+ Title : "List Allowed Directories" ,
176185 },
177186 Parameters : tools.FunctionParamaters {
178187 Type : "object" ,
@@ -185,6 +194,9 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
185194 Function : & tools.FunctionDefinition {
186195 Name : "add_allowed_directory" ,
187196 Description : "Request to add a new directory to the allowed directories list. This requires explicit user consent for security reasons." ,
197+ Annotations : tools.ToolAnnotation {
198+ Title : "Add Allowed Directory" ,
199+ },
188200 Parameters : tools.FunctionParamaters {
189201 Type : "object" ,
190202 Properties : map [string ]any {
@@ -212,6 +224,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
212224 Description : "Get a detailed listing of all files and directories in a specified path." ,
213225 Annotations : tools.ToolAnnotation {
214226 ReadOnlyHint : & []bool {true }[0 ],
227+ Title : "List Directory" ,
215228 },
216229 Parameters : tools.FunctionParamaters {
217230 Type : "object" ,
@@ -232,6 +245,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
232245 Description : "Get a detailed listing of all files and directories in a specified path, including sizes." ,
233246 Annotations : tools.ToolAnnotation {
234247 ReadOnlyHint : & []bool {true }[0 ],
248+ Title : "List Directory With Sizes" ,
235249 },
236250 Parameters : tools.FunctionParamaters {
237251 Type : "object" ,
@@ -250,6 +264,9 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
250264 Function : & tools.FunctionDefinition {
251265 Name : "move_file" ,
252266 Description : "Move or rename files and directories." ,
267+ Annotations : tools.ToolAnnotation {
268+ Title : "Move File" ,
269+ },
253270 Parameters : tools.FunctionParamaters {
254271 Type : "object" ,
255272 Properties : map [string ]any {
@@ -273,6 +290,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
273290 Description : "Read the complete contents of a file from the file system." ,
274291 Annotations : tools.ToolAnnotation {
275292 ReadOnlyHint : & []bool {true }[0 ],
293+ Title : "Read File" ,
276294 },
277295 Parameters : tools.FunctionParamaters {
278296 Type : "object" ,
@@ -293,6 +311,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
293311 Description : "Read the contents of multiple files simultaneously." ,
294312 Annotations : tools.ToolAnnotation {
295313 ReadOnlyHint : & []bool {true }[0 ],
314+ Title : "Read Multiple Files" ,
296315 },
297316 Parameters : tools.FunctionParamaters {
298317 Type : "object" ,
@@ -316,6 +335,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
316335 Description : "Recursively search for files and directories matching a pattern." ,
317336 Annotations : tools.ToolAnnotation {
318337 ReadOnlyHint : & []bool {true }[0 ],
338+ Title : "Search Files" ,
319339 },
320340 Parameters : tools.FunctionParamaters {
321341 Type : "object" ,
@@ -347,6 +367,7 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
347367 Description : "Searches for text or regex patterns in the content of files matching a GLOB pattern." ,
348368 Annotations : tools.ToolAnnotation {
349369 ReadOnlyHint : & []bool {true }[0 ],
370+ Title : "Search Files Content" ,
350371 },
351372 Parameters : tools.FunctionParamaters {
352373 Type : "object" ,
@@ -380,6 +401,9 @@ func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) {
380401 Function : & tools.FunctionDefinition {
381402 Name : "write_file" ,
382403 Description : "Create a new file or completely overwrite an existing file with new content." ,
404+ Annotations : tools.ToolAnnotation {
405+ Title : "Write File" ,
406+ },
383407 Parameters : tools.FunctionParamaters {
384408 Type : "object" ,
385409 Properties : map [string ]any {
0 commit comments