Skip to main content

Module bash

Module bash 

Source
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§

BashOutput
What a bash command wrote (BashOutput), each stream trimmed.
BashSessionError
The bash session failed (BashSessionError), for example the process exited during a command. The next call starts a new session.
BashTimeoutError
A bash command exceeded its timeout (BashTimeoutError); the session is stopped.

Functions§

bash
Creates the bash tool (bash): mode: "execute" runs command in the calling agent’s session and returns a BashOutput as JSON; mode: "restart" replaces the session.