Files
gemini-cli/packages/server/src/tools/shell.md

16 lines
842 B
Markdown
Raw Normal View History

2025-04-28 08:17:52 -07:00
This tool executes a given shell command as `bash -c <command>`.
2025-04-27 18:57:10 -07:00
Command can be any valid single-line Bash command.
2025-04-28 08:17:52 -07:00
Command can start background processes using `&`.
Command is executed as a subprocess.
2025-04-28 08:17:52 -07:00
2025-04-27 18:57:10 -07:00
The following information is returned:
2025-04-28 08:17:52 -07:00
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 and for any unwaited background processes.
Stderr: Output on stderr stream. Can be `(empty)` or partial on error and for any unwaited background processes.
Error: Error or `(none)` if no error was reported for the subprocess.
2025-04-27 18:57:10 -07:00
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)`.