Skip to main content
Glama

xcresult_get_screenshot

Extract a screenshot from a failed Xcode test at a specific timestamp using the .xcresult file. Input the file path, test ID, and timestamp to retrieve the frame before the failure occurs.

Instructions

Get screenshot from a failed test at specific timestamp - extracts frame from video attachment using ffmpeg

Input Schema

NameRequiredDescriptionDefault
test_idYesTest ID or index number to get screenshot for
timestampYesTimestamp in seconds when to extract the screenshot. WARNING: Use a timestamp BEFORE the failure (e.g., if failure is at 30.71s, use 30.69s) as failure timestamps often show the home screen after the app has crashed or reset.
xcresult_pathYesAbsolute path to the .xcresult file

Input Schema (JSON Schema)

{ "properties": { "test_id": { "description": "Test ID or index number to get screenshot for", "type": "string" }, "timestamp": { "description": "Timestamp in seconds when to extract the screenshot. WARNING: Use a timestamp BEFORE the failure (e.g., if failure is at 30.71s, use 30.69s) as failure timestamps often show the home screen after the app has crashed or reset.", "type": "number" }, "xcresult_path": { "description": "Absolute path to the .xcresult file", "type": "string" } }, "required": [ "xcresult_path", "test_id", "timestamp" ], "type": "object" }

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/lapfelix/XcodeMCP'

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