run_command
Execute a shell command on a registered, authorized online device. device_id selects target, command is the command line, shell selects powershell/pwsh/cmd (Windows) or zsh/bash/sh (macOS); macOS -root shells need a local helper. Optional working_directory; timeout_seconds clamped to 1–1800 (default 120). Can modify system or files; confirm consequential commands.
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": {
"device_id": "<device_id>",
"command": "<command>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shell | No | powershell | |
| command | Yes | ||
| device_id | Yes | ||
| timeout_seconds | No | ||
| working_directory | No |