take_app_screenshot
Take screenshots of up to 5 windows for any app found by case-insensitive name match. Returns file paths for each captured window.
Instructions
Take screenshots of all windows for an app (case-insensitive substring match). If the app has more than one window, screenshots will be taken for up to 5 of them.
Note: Only apps with at least one on-screen window can be found by this tool.
Args: app_name: Full or partial app name to match.
Returns: Path(s) to saved screenshot file(s), one per line (max 5 windows). If multiple apps match, returns an error with the full window list.
Raises: XCodeMCPError: If no matching app found, multiple apps match, or screenshot fails.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_name": "<app_name>"
},
"name": "take_app_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |