qt_click
Clicks a Qt widget by referencing its snapshot, enabling agents to automate buttons, menus, and controls with optional mouse button, modifiers, or click position.
Instructions
Click a widget.
Args: ref: Widget ref from qt_snapshot. button: Mouse button - 'left', 'right', or 'middle'. modifiers: Keyboard modifiers - 'shift', 'ctrl', 'alt', 'meta'. position: [x, y] relative to widget top-left. Default: 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": {
"ref": "<ref>"
},
"name": "qt_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| button | No | left | |
| instance | No | ||
| position | No | ||
| modifiers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |