list_files — list files in a directory
list_files walks the environment recursively and returns matching paths, one per line. With no args, it lists everything under the current directory.
Schema
Section titled “Schema”| Arg | Type | Required | Default | Description |
|---|---|---|---|---|
path | string | no | . | Directory to list. |
glob | string | no | null | Glob filter applied to filenames, e.g. *.py. |
Example invocation
Section titled “Example invocation”{"path": "chimera/tools", "glob": "*.py"}from chimera.tools.list_files import ListFilesTool
tool = ListFilesTool()result = tool.execute({"path": "examples", "glob": "*.py"}, env=local_env)Output sample
Section titled “Output sample”examples/agent/coding_agent.pyexamples/agent/coding_agent_minimal.pyexamples/badger_quickstart.py...If nothing matches, the output is No files found..