focus_order
Returns the keyboard focus order for a UI description, verifying reachability and tab sequence without driving the UI.
Instructions
Return the keyboard focus order: the refs a Tab cycle visits, in order, honoring a modal focus trap (disabled controls excluded). Verifies reachability and tab sequence as typed data, without driving the 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": {
"description": "<description>"
},
"name": "focus_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| theme | No | ||
| description | Yes | The UI description: a `fenestra/1` JSON object. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | Focusable node refs in tab order, honoring a modal focus trap (disabled controls excluded). |