terminal_execute
Execute macOS terminal commands and get the output. Supports pipes, redirects, and command chaining using the default zsh shell.
Instructions
Execute a shell command in the macOS terminal and return the output. Supports any shell command including pipes, redirects, and chaining. Default shell is zsh. Timeout defaults to 30 seconds.
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": "terminal_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory (defaults to home directory) | |
| env | No | Additional environment variables | |
| shell | No | Shell to use (default: /bin/zsh) | |
| command | Yes | Shell command to execute | |
| timeout | No | Timeout in milliseconds (default: 30000) |