run_command
Execute a single shell command inside an allowed root with capped output and a sanitized environment, so local tasks can run without exposing Anthropic credentials.
Instructions
Run one command inside an allowed root. Output is capped. Anthropic credentials are removed from the child environment.
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 | Working directory inside a root. | |
| command | Yes | Command line. | |
| timeout_seconds | No | Timeout, capped by server config. |