qt_mouse_click
Send a mouse click to a Qt UI element via element_id, with button and modifier options. Use for plain Qt widgets; for QML custom components, prefer region or coordinate click tools.
Instructions
Send a mouse click to a UI element (direct delivery).
For plain QtWidgets (QPushButton, QLineEdit, ...) direct delivery
works and is the cheapest option. Use qt_mouse_click_region (element
center) or qt_mouse_click_at (exact coordinates) for QML custom
components (buttons, nav rows, list items) — those route through the
real Qt input pipeline with real hit testing and are far more
reliable. button: "left"/"right"/"middle" (anything else falls
back to left); modifiers: list of "Ctrl"/"Alt"/"Shift"/"Meta".
A result with ok:false means the element was rejected (hidden/
disabled/zero-size/stale id) — re-find and retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| button | No | left | |
| modifiers | No | ||
| element_id | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |