Right-click
right_clickPerform a secondary click on an element or screen position to open its context menu, then read and select menu items with get_app_state.
Instructions
Right-click (secondary click) an element or screen position to open its context menu. Follow with get_app_state to read the menu items, then click one. Use click for normal activation. Pass element_id or x and y, not both. The user's pointer is treated as for click.
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": "right_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Screen x coordinate in points, used together with y when no element_id is given | |
| y | No | Screen y coordinate in points, used together with x when no element_id is given | |
| element_id | No | Element id from the most recent get_app_state snapshot, e.g. e12 | |
| state_query | No | With return_state, list only elements whose role, label or value contains this text, like get_app_state's query | |
| return_state | No | After acting, wait for the app to finish reacting (up to 2 s) and append a fresh get_app_state of the app you last read, so you can check the result and pick the next target in the same call. Its ids replace every earlier id. |