qt_mouse_context_menu
Open the right-click context menu for any UI element in a Qt app, optionally at specific pixel coordinates. Use it to access menu options during UI automation.
Instructions
Open the context menu at an element (right-click menu).
x/y are optional logical-pixel coordinates relative to the element's top-left corner; either both or neither (omitted = element center).
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": {
"session_id": "<session_id>",
"element_id": "<element_id>"
},
"name": "qt_mouse_context_menu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| element_id | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |