qt_mouse_click_region
Click the center of an element's on-screen region via real Qt input pipeline and hit testing, delivering the click to the actual interactive child (e.g., MouseArea) like a human click.
Instructions
Click at the center of an element's on-screen region.
Unlike qt_mouse_click (which delivers straight to the element), this routes through the real Qt input pipeline with real hit testing: for a QML container (e.g. a Rectangle with a MouseArea inside) the scene graph hit test delivers the click to the MouseArea, exactly as a human click would.
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_click_region"
}
}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 |