capture_widget
Capture a Qt widget by its objectName to get a PNG image. Use with a connected Qt application running the proxy agent.
Instructions
Capture a specific Qt widget by its objectName via the proxy agent.
Requires a Qt application that has called qt_mcp.agent.start_agent(window)
and is connected to this server's Unix domain socket.
Args:
widget_name: The widget's objectName. Use list_capturable_widgets
to discover valid names.
Returns the widget as a PNG image.
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_name": "<widget_name>"
},
"name": "capture_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widget_name | Yes |