Run a command
run_commandRun a shell command on the user's computer and return stdout, stderr and the exit code.
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. Defaults to the user's home directory. | |
| device | No | Device name. Optional when the account has only one online device. | |
| command | Yes | Shell command to run. | |
| timeout_seconds | No | Kill the command after this many seconds (default 90, max 600). |