Files
oak-gpui/crates/assistant_tools/src/bash_tool/description.md
T
Agus ZubiagaandAntonio Scandurra 2edadd9352 bash tool: Rename working_directory to cd and improve command wrap (#26702)
This helps its do the right thing

Release Notes:

- N/A

Co-authored-by: Antonio Scandurra <me@as-cii.com>
2025-03-13 18:29:25 +00:00

561 B

Executes a bash one-liner and returns the combined output.

This tool spawns a bash process, combines stdout and stderr into one interleaved stream as they are produced (preserving the order of writes), and captures that stream into a string which is returned.

Make sure you use the cd parameter to navigate to one of the root directories of the project. NEVER do it as part of the command itself, otherwise it will error.

Remember that each invocation of this tool will spawn a new bash process, so you can't rely on any state from previous invocations.