crosspad_ui
Drive CrossPad's on-screen UI using snapshot refs to focus, press, rotate, or launch apps, and get a fresh snapshot after each action for reliable next-step control.
Instructions
[ESP HW] Drive the CrossPad's on-screen UI by snapshot refs and, by default, return a fresh snapshot after each action. focus ref=e moves the encoder focus to that group entry, press clicks the encoder, rotate turns it, back is the app's own Back, start_app name opens an app, stop_app closes it and rebuilds the launcher. Every action returns a fresh snapshot by default; use its ui.group refs for the next step, old refs are invalid.
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": {
"action": "<action>"
},
"name": "crosspad_ui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ms | No | press: encoder button hold (default 80) | |
| ref | No | focus: a ref from a snapshot's ui.group, e.g. e2 | |
| name | No | start_app: app name as listed by crosspad_cdc verb=app action=list | |
| delta | No | rotate: detents, non-zero, may be negative | |
| action | Yes | focus ref=e<i>; press [ms]; rotate delta; back; start_app name; stop_app | |
| device | No | Device id or port; omit when exactly one CrossPad is connected | |
| wait_s | No | start_app: wait for the device to confirm (default 3) | |
| include | No | Snapshot sections (default all) | |
| return_snapshot | No | Take a fresh crosspad_snapshot after the action (default true) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ts | No | ||
| docs | No | ||
| hint | No | ||
| next | No | ||
| tool | No | ||
| delta | No | ||
| error | No | ||
| action | No | ||
| device | No | ||
| notice | No | ||
| result | No | ||
| details | No | ||
| outcome | No | ||
| success | Yes | ||
| snapshot | No | ||
| to_index | No | ||
| from_index | No | ||
| elicitation | No | ||
| confirmation | No |