tools/Bash
The bash tool: a command through the environment’s shell. Its output streams through ToolCall.output, where the
harness keeps the tail; the result content is that retained output. Output beyond the limits spills to a file whose
path is reported as a full_output diagnostic. A nonzero exit or a timeout fails the call, which still answers with
the output and diagnostics.
Since v0.0.0
BashArgs (type alias)
Section titled “BashArgs (type alias)”Signature
type BashArgs = typeof BashParameters.TypeSince v0.0.0
BashExecution (interface)
Section titled “BashExecution (interface)”What runs: the command, its directory and its variables.
Signature
export interface BashExecution { readonly command: string readonly cwd: string readonly env: Readonly<Record<string, string>> readonly inheritEnv: boolean}Since v0.0.0
BashOptions (interface)
Section titled “BashOptions (interface)”Signature
export interface BashOptions { /** A line run before every command, in the same shell. */ readonly commandPrefix?: string readonly prepare?: BashPrepare}Since v0.0.0
BashParameters
Section titled “BashParameters”Signature
declare const BashParameters: anySince v0.0.0
BashPrepare (type alias)
Section titled “BashPrepare (type alias)”Adjust an execution before it runs, with the call’s ToolCall.
Signature
type BashPrepare = (execution: BashExecution) => Effect.Effect<BashExecution, unknown, ToolCall>Since v0.0.0
A bash tool.
Signature
declare const make: (options?: BashOptions) => Tool.Tool<BashArgs>Since v0.0.0