run
Execute a raw command on a device when standard actions cannot complete the task, returning stdout, stderr, and the exit code; destructive commands are refused unless explicitly confirmed.
Instructions
Escape hatch: run a raw command on the device and return stdout, stderr and exit code.
For android_adb devices the command runs as adb shell <command>. Use this only when act
cannot do the job. Commands that look destructive (factory reset / wipe, recursive delete,
uninstalling or disabling apps, reboot, dd / mkfs, turning debugging or the network off, ...)
are refused. Never pass confirm=true on your own initiative: first tell the user exactly what
the command will do, get their spoken "yes", and only then repeat the call with confirm=true.
On a device with strict: true every command needs that confirmation, not only destructive ones.
timeout is in seconds (max 120); long output is truncated.
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": "<device>",
"command": "<command>"
},
"name": "run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| command | Yes | ||
| confirm | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||