run_command
Executes non-interactive shell commands inside a scoped workspace, applying timeouts and output limits for controlled automation and diagnostics.
Instructions
Run a non-interactive shell command. OS isolation is required for untrusted callers.
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_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | . | |
| command | Yes | ||
| timeout_sec | No | ||
| max_output_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||