runCommand
Execute an allowlisted command securely, returning stdout, stderr, exit code, and timing. No shell is used for safety.
Instructions
Execute allowlisted command. Returns stdout, stderr, exit code, timing. No shell for security.
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": "runCommand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working dir (absolute or workspace-relative, default: workspace root) | |
| args | No | Command arguments | |
| command | Yes | Command basename (must be in allowlist, no paths) | |
| timeout | No | Timeout in milliseconds (default: 30000, max: 600000) |