click_widget
Click a widget by its ID to trigger its action or event. Supports left, right, or middle button and double-click.
Instructions
Click a widget by its ID.
Finds the widget with the given ID and triggers a click action. For buttons, this invokes the button command. For other widgets, this generates a click event.
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": {
"widget_id": "<widget_id>"
},
"name": "click_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widget_id | Yes | The widget ID from get_ui_layout() | |
| button | No | Mouse button - "left", "right", or "middle" | left |
| double | No | If True, perform a double-click |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |