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
| Parameter | Type | Description |
|---|---|---|
command | string | The bash/shell command to run (e.g. ls -la, python script.py). |
timeout_seconds | integer | (Optional) Max seconds to wait; default is 60. |
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