Run command
shellExecute one command on a remote peer and return its output and exit code. Chain steps with && or pipes instead of making multiple calls.
Instructions
Run one shell command on the peer and return its output and exit code. Windows peers: PowerShell. macOS / Linux / Android: the login shell. Chain steps in one command (&&, pipes) instead of many calls. Output over ~60 KB is cut in the middle.
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": {
"peer": "<peer>",
"command": "<command>"
},
"name": "shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | The peer's 9-digit rockd ID (from `devices` / `status`), or IP:port to dial directly | |
| command | Yes | ||
| timeout_sec | No | Give up after this many seconds (default 300, max 3600). Use spawn for longer jobs. |