run_bash tool so an autonomous agent can run shell commands on the terminal.
When to use it
- The agent needs to run CLI commands (e.g.
ls,python script.py,git status). - You use
max_loops="auto"and want the agent to have terminal access. - You want to keep other tools restricted and only add bash execution.
Enable the tool
Include"run_bash" in selected_tools when creating the agent:
Run a task
The agent will plan and callrun_bash when it needs to run a command:
Tool parameters
Commands run in the agent’s workspace directory when available. Stdout and stderr are returned; long-running commands should use a higher
timeout_seconds or be avoided.
Example file
A full runnable example is in the repo:See also
- Autonomous Looper Tools – Configuring
selected_tools - Agent Reference –
selected_toolsand autonomous loop