ui_menu
Retrieves the current client UI state: open menu class, cursor visibility, and modal dialog presence. Reads local data to avoid a command round trip.
Instructions
What the client's interface is doing right now.
Free: the client half republishes the open menu's class, whether the cursor
is visible and whether a modal dialog is up on every tick, so this answer is
already on disk and costs no command round trip -- the same bargain
world_state makes with no arguments.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ui_menu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| hint | No | ||
| error | No |