qt_set_property
Sets a Qt widget property to a new value via its snapshot reference and property name, enabling targeted UI state changes in running applications.
Instructions
Set a Qt property on a widget.
Args: ref: Widget ref from qt_snapshot. property_name: Qt property name. value: New value for the property.
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>",
"property_name": "<property_name>",
"value": "<value>"
},
"name": "qt_set_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| value | Yes | ||
| instance | No | ||
| property_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |