qt_screenshot
Capture a screenshot of a UI element or entire window in a Qt application, returning a URI to access the PNG image. Enables visual inspection and debugging during automated interactions.
Instructions
Capture a screenshot of a UI element or the entire window.
element_id 0 captures the active (or first visible) top-level
window. The PNG is written to the file at the returned uri —
read that resource (qt-commander://sessions/.../screenshots/N.png) to
obtain the image bytes. On failure the result reports the error and
no image is written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element_id | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |