Skip to content

Execution Tools

Runs a shell command and returns stdout + stderr.

{"tool": "Bash", "input": {"command": "npm test"}}
{"tool": "Bash", "input": {"command": "pytest tests/", "working_dir": "agent"}}
ParameterTypeDescription
commandstringShell command to run
working_dirstring?Subdirectory to run in (relative to working directory)
timeoutint?Timeout in seconds (default: 30)

Output is truncated to 10,000 characters. The exit code is included in the result.


Executes Python code in a persistent interpreter session. State (variables, imports) is preserved across calls within the same conversation.

{"tool": "REPL", "input": {"code": "x = [1, 2, 3]\nprint(sum(x))"}}

Useful for data analysis, calculations, or iterative scripting where you want to build up state across multiple tool calls.

The REPL session is reset when the conversation is reset.


Pauses agent execution for a specified duration. Useful for waiting for background processes or rate-limiting.

{"tool": "Sleep", "input": {"seconds": 2}}

Maximum sleep duration: 60 seconds.