take_window_screenshot
Capture a screenshot of any on-screen window using its window ID or partial title. Supports up to 5 matching windows at once.
Instructions
Take a screenshot of a window by ID or name (case-insensitive substring match).
Window IDs can be obtained by calling list_mac_app_windows, or you can simply
pass a partial (or complete) window title, like "News" for the News app.
If multiple windows match the provided name, screenshots will be taken for up to
the first 5 of them.
Note: Only on-screen windows can be found by name.
Args: window_id_or_name: Window ID number or partial window title to match.
Returns: Path(s) to saved screenshot file(s), one per line if multiple matches.
Raises: XCodeMCPError: If no matching windows found or screenshot fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window_id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |