take_xcode_screenshot
Capture a screenshot of the Xcode window for the specified project and return the file path.
Instructions
Take a screenshot of the Xcode window for the specified project.
Args: project_path: Path to an Xcode project/workspace directory.
Returns: The file path to the saved screenshot.
Raises: XCodeMCPError: If Xcode window is not found 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": {
"project_path": "<project_path>"
},
"name": "take_xcode_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |