query_fs for searching and reading files.
query_fs with a filesystem question. A sub-agent handles file listing, searching, and reading.
Run
1
Set up your virtual environment
2
Install dependencies
3
Export your OpenAI API key
4
Run the example
Save the code as
filesystem_context.py, then run:Configuration
Tools Exposed
FilesystemContextProvider is read-only. There is no
update_fs tool.Example queries
Resources
FileTools Reference
Underlying toolkit methods
Cookbook Example
Working example