Home Explore Blog CI



zed

crates/assistant_tools/src/terminal_tool/description.md
ca349db728e3bc79756421ca77a15c390659a6ad370dbeb40000000300000343
Executes a shell one-liner and returns the combined output.

This tool spawns a process using the user's shell, reads from stdout and stderr (preserving the order of writes), and returns a string with the combined output result.

The output results will be shown to the user already, only list it again if necessary, avoid being redundant.

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.

Do not use this tool for commands that run indefinitely, such as servers (like `npm run start`, `npm run dev`, `python -m http.server`, etc) or file watchers that don't terminate on their own.

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

Chunks
59f0dc5f (1st chunk of `crates/assistant_tools/src/terminal_tool/description.md`)
Title: Shell One-Liner Execution Tool
Summary
This tool executes a shell command provided as a one-liner and returns the combined standard output and standard error. It emphasizes using the `cd` parameter for directory navigation and discourages use for long-running processes. Each invocation creates a new shell process.