Skip to main content
Glama

qt_screenshot

Capture screenshots of PySide6 application windows or specific widgets for debugging and inspection purposes. Supports PNG/JPEG formats with size constraints.

Instructions

Take a screenshot of the entire window or a specific widget.

Args:
    ref: Widget ref from qt_snapshot (e.g., 'w5'). If omitted, captures active window.
    full_window: If True, captures the first visible top-level window.
    max_width: Max width before downscaling (default 1920).
    max_height: Max height before downscaling (default 1080).
    format: Image format - 'png' or 'jpeg' (default 'png').
    quality: JPEG quality 1-100 (default 80, ignored for PNG).

Returns a base64-encoded PNG image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNo
full_windowNo
max_widthNo
max_heightNo
formatNopng
qualityNo
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains key behaviors: capturing windows/widgets, downscaling logic, format options, and the return type (base64-encoded PNG image). However, it lacks details on error conditions, performance implications, or whether the tool is read-only/destructive. The description adds value but doesn't fully cover behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded: the first sentence states the core purpose, followed by a structured parameter list with clear explanations. Every sentence adds value without redundancy, making it easy to scan and understand.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (6 parameters, no output schema, no annotations), the description is mostly complete. It covers purpose, parameters, and return value. However, it lacks information on error handling, performance considerations, or explicit guidance on tool selection versus siblings, leaving minor gaps in context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds significant meaning beyond the input schema, which has 0% description coverage. It explains each parameter's purpose, defaults, constraints (e.g., 'ref' from qt_snapshot, format options 'png' or 'jpeg', quality range 1-100), and interactions (e.g., quality ignored for PNG). This fully compensates for the schema's lack of descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Take a screenshot') and resource ('entire window or a specific widget'), distinguishing it from sibling tools like qt_snapshot (which likely provides widget references) and qt_vtk_screenshot (which targets VTK scenes). The first sentence directly answers what the tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context on when to use certain parameters (e.g., 'ref' for specific widgets, omitting it for active window, 'full_window' for top-level windows) and implies usage through parameter explanations. However, it does not explicitly state when to use this tool versus alternatives like qt_vtk_screenshot or qt_snapshot, nor does it provide exclusion criteria.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xCarbon/qt-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server