Expand description
Bash shell execution tool.
Structs§
- Bash
Tool - BashTool.
- PtyOutcome
- Outcome of a PTY-backed command run. The output is filtered to keep SGR
color escapes (
ESC [ ... m) and drop cursor-motion / screen-control sequences so the bytes are safe to embed in the agent transcript.
Functions§
- run_
in_ pty - Run a command inside a real PTY (portable-pty). Output is merged (stderr
is folded into stdout via
exec 2>&1) and filtered. Returns the filtered output and the child’s exit code.