execute_shell_command
Run shell commands and capture output safely with this tool. Specify the command, working directory, and output length limit. Returns stdout and stderr in JSON format for easy integration.
Instructions
Execute a shell command and return its output. If there is a memory about suggested commands, read that first.
Never execute unsafe shell commands like rm -rf /
or similar!. Returns a JSON object containing the command's stdout and optionally stderr output.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
capture_stderr | No | Whether to capture and return stderr output. | |
command | Yes | The shell command to execute. | |
cwd | No | The working directory to execute the command in. If None, the project root will be used. | |
max_answer_chars | No | If the output is longer than this number of characters, no content will be returned. Don't adjust unless there is really no other way to get the content required for the task. |