qwen-code/packages/server/src/tools/shell.md
2025-04-28 08:17:52 -07:00

698 B

This tool executes a given shell command as bash -c <command>. Command can be any valid single-line Bash command. Command can start background processes using &.

The following information is returned:

Command: Executed command. Directory: Directory (relative to project root) where command was executed, or (root). Stdout: Output on stdout stream. Can be (empty) or partial on error. Stderr: Output on stderr stream. Can be (empty) or partial on error. Error: Error or (none) if no error occurred. Exit Code: Exit code or (none) if terminated by signal. Signal: Signal number or (none) if no signal was received. Background PIDs: List of background processes started or (none).