Right-click
right_clickOpen a context menu on a UI element or screen coordinates to access secondary-click options, then read the menu with get_app_state and select an item.
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.
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 briefly for the UI to settle 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. |