execute_shell_command
Run a shell command and return its stdout/stderr output as JSON. Checks memory for suggested commands before executing, preventing unsafe operations.
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 |
|---|---|---|---|
| cwd | No | The working directory to execute the command in. If None, the project root will be used. | |
| command | Yes | The shell command to execute. | |
| capture_stderr | No | Whether to capture and return stderr output. | |
| max_answer_chars | No | If the output is longer than this number of characters, no content will be returned. -1 means using the default value, don't adjust unless there is no other way to get the content required for the task. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |