Run shell command
shell_runRun a command with structured arguments inside a specific workspace. The command executes locally with no shell interpolation, providing controlled local execution.
Instructions
Run a structured command array inside an open workspace. This is real local execution.
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": {
"workspaceId": "<workspaceId>",
"command": "<command>"
},
"name": "shell_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | Yes | ||
| command | Yes | Executable name or absolute executable path. | |
| args | No | Command arguments. No shell interpolation is used. | |
| workingDirectory | No | Directory relative to the workspace root. | |
| timeoutMs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stdout | Yes | ||
| stderr | Yes | ||
| exitCode | Yes | ||
| signal | Yes | ||
| durationMs | Yes | ||
| timedOut | Yes |