run_command
Executes an approved local command in a specified working directory and reports live output, exit code, stdout, stderr, and timeout status.
Instructions
Run an allowed local command and report live output, final exit code, stdout, stderr, and timeout status.
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>",
"args": "<args>",
"cwd": "<cwd>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | An existing local directory given as an absolute path. | |
| args | Yes | One argument per array element. Use [] for no arguments. | |
| command | Yes | A single program name or executable path. | |
| live_window | No | Open a local live output window on Windows for longer commands. | |
| timeout_seconds | No | Command timeout in seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||