Skip to main content

FilesTools

Toolkit that gives an agent access to the project filesystem. The agent gets one tool per allowed action (read_text, write_text, list, delete, etc.), restricted to paths matching the configured glob patterns.

Parameters

NameDescriptionTypeDefault
actionsAllowed file operations. One of "read", "read_text", "read_bytes", "write", "write_text", "write_bytes", "delete", "move", "list", "append", or a list of them. Shorthand "read" enables both read_text and read_bytes; "write" enables both write variants. Defaults to all actions.Union('read', 'read_text', 'read_bytes', 'write', 'write_text', 'write_bytes', 'delete', 'move', 'list', 'append')
globsGlob pattern(s) restricting which paths the agent can touch (e.g. "data/*" or ["*.csv", "reports/**"]). Defaults to "*" (all paths).Union'*'