shell_batch
Run multiple ADB shell commands in one process or root session, returning per-command output and exit codes with optional fail-fast to avoid repeated tool calls.
Instructions
Run 1..200 CLI commands in ONE ADB process/Root session. Per-command exit codes and output, optional fail-fast; avoids one subprocess/tool call per command.
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": {
"commands": "<commands>"
},
"name": "shell_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | ||
| timeout | No | ||
| commands | Yes | ||
| stop_on_error | No | ||
| max_output_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||