click_widget
Clicks a QGIS button, checkbox, or tool button by object name or visible text; the click is deferred so modal dialogs do not block the calling client.
Instructions
Click a button/checkbox/tool button by objectName or visible text (for QActions / menu items use trigger_action).
The click is deferred; the reply is immediate, so a modal dialog it opens does not block.
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": {
"window": "<window>"
},
"name": "click_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| index | No | ||
| window | Yes | ||
| object_name | No |