Skip to content

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.

ArgTypeRequiredDefaultDescription
pathstringno.Directory to list.
globstringnonullGlob filter applied to filenames, e.g. *.py.
{"path": "chimera/tools", "glob": "*.py"}
from chimera.tools.list_files import ListFilesTool
tool = ListFilesTool()
result = tool.execute({"path": "examples", "glob": "*.py"}, env=local_env)
examples/agent/coding_agent.py
examples/agent/coding_agent_minimal.py
examples/badger_quickstart.py
...

If nothing matches, the output is No files found..