run_shell_command
Run shell commands with safety checks, custom timeout, and working directory to automate macOS tasks.
Instructions
Execute a shell command (with safety checks).
Args: command: Shell command to execute timeout: Maximum execution time in seconds (default: 30) working_dir: Optional working directory
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "run_shell_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| working_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |