Expand description
The host bash tool: a persistent bash process per agent, so variables and the working
directory carry over between calls.
The process runs on the host, not in the agent’s sandbox, and has no isolation. The
sandbox-routed, stateless shell is shell.
Structs§
- Bash
Output - What a bash command wrote (
BashOutput), each stream trimmed. - Bash
Session Error - The bash session failed (
BashSessionError), for example the process exited during a command. The next call starts a new session. - Bash
Timeout Error - A bash command exceeded its timeout (
BashTimeoutError); the session is stopped.
Functions§
- bash
- Creates the
bashtool (bash):mode: "execute"runscommandin the calling agent’s session and returns aBashOutputas JSON;mode: "restart"replaces the session.