Skip to main content
Glama

wpf_capture_screenshot

Capture a screenshot of a WPF window or a specific element, with render mode for off-screen capture or screen mode to include popups and menus.

Instructions

Capture a screenshot of the WPF window or a specific element. Returns an image that can be visually analyzed. Use element_handle to capture a specific element, or omit for the entire window. mode='render' (default) re-renders the visual off-screen — works even if the window is covered, but CANNOT see open Popups, ComboBox dropdowns, context menus or tooltips. mode='screen' captures the actual on-screen pixels (GDI) and DOES include them — use it right after clicking something that opened a popup/menu; requires the window to be visible and unobstructed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNorender
max_widthNo
max_heightNo
element_handleNo
Behavior4/5

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

No annotations provided so description bears full burden. It discloses that 'render' re-renders off-screen and cannot see popups/menus, while 'screen' captures on-screen pixels and requires visibility. This is good behavioral disclosure for a screenshot tool.

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

Conciseness4/5

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

Two sentences: first states purpose concisely, second provides detailed mode guidance. Efficient but could be slightly more structured with bullet points for clarity. No information is wasted.

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?

No output schema, but description notes it returns an image for visual analysis. Parameters are mostly covered. For a screenshot tool with no complex outputs, this is complete enough for an agent to use correctly.

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

Parameters4/5

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

Schema description coverage is 0%, so description compensates by explaining 'element_handle' (capture specific element or omit for entire window) and 'mode' (render vs screen with behavioral differences). max_width and max_height are not explained beyond defaults, but their purpose is somewhat implied.

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?

Clearly states 'Capture a screenshot of the WPF window or a specific element.' The verb 'capture' and resource 'screenshot of WPF window/element' are specifically defined. No sibling tool performs a similar function, so it is well-differentiated.

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?

Provides explicit guidance on when to use each mode: 'render' for general use but cannot capture popups/menus; 'screen' for capturing popups/menus after clicking. Also advises to use element_handle for specific elements. Lacks explicit 'when not to use' but is clear enough.

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/faze79/WPFVisualTreeMcp'

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