terminal_exec
Execute any shell command and capture its full ANSI-colored output, returning the text plus a capture ID to render as a terminal screenshot later. Use it for logging commands or building terminal captures.
Instructions
Execute any shell command and capture its full output with ANSI colors. Returns output text and a capture ID for later screenshot. Use terminal_exec_screenshot instead if you want the image immediately.
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_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory (optional) | |
| command | Yes | Shell command to execute | |
| timeout | No | Timeout in milliseconds (default: 30000) |