set_widget
Set a QGIS widget's value for text, number, boolean, or combo fields; rejects invisible, disabled, or read-only widgets to avoid invalid UI changes.
Instructions
Set a widget value (text, number, bool, combo index/text, ...). Refuses invisible/disabled/read-only widgets.
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>",
"object_name": "<object_name>",
"value": "<value>"
},
"name": "set_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| value | Yes | ||
| window | Yes | ||
| object_name | Yes |