scope_element
Capture high-resolution screenshots of specific UI elements with their child element trees for native apps, Chrome/Edge, and VS Code. Use after discovering elements with get_ui_elements to document and analyze interface components.
Instructions
Return a high-resolution screenshot of a specific element's region plus its child element tree. Requires UIA — works with native apps, Chrome/Edge, VS Code. Use get_ui_elements first to discover element names or automationIds. At least one of name, automationId, or controlType must be provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| windowTitle | Yes | Partial window title of the target window | |
| name | No | Element name/label (partial match, case-insensitive) | |
| automationId | No | Exact AutomationId of the element | |
| controlType | No | Control type filter, e.g. 'Edit', 'Button', 'List' | |
| maxDepth | No | Child element tree depth (default 2) | |
| maxElements | No | Max child elements (default 30) | |
| padding | No | Padding in pixels around the element in the screenshot (default 10) |