qt_invoke_slot
Invoke a Qt QObject slot or method using a widget reference and method name to trigger application behavior programmatically.
Instructions
Invoke a slot or method on a QObject.
Args: ref: Widget ref from qt_snapshot. method_name: Slot/method name to invoke.
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>",
"method_name": "<method_name>"
},
"name": "qt_invoke_slot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| instance | No | ||
| method_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |