screen_batch
Runs multiple screenctl steps as one action with a single permission check, stopping at an expect mismatch to report the current screen.
Instructions
Run several screenctl steps, one per line (POSIX quoting), as one action with one permission check. Put expect --text '…' after steps that change the page: the batch stops there with exit 4 and prints what is on screen. Not allowed inside: select, ui.
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": {
"steps": "<steps>"
},
"name": "screen_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | one command per line, e.g. "click --text Next\nexpect --text Done" |