Skip to main content
Glama

xcresult_export_attachment

Extract and export specific attachments from Xcode .xcresult files by index. Converts App UI hierarchy attachments to JSON format for easier analysis and debugging.

Instructions

Export a specific attachment by index - can convert App UI hierarchy attachments to JSON

Input Schema

NameRequiredDescriptionDefault
attachment_indexYesIndex number of the attachment to export (1-based, from xcresult-list-attachments)
convert_to_jsonNoIf true and attachment is an App UI hierarchy, convert to JSON format
test_idYesTest ID or index number that contains the attachment
xcresult_pathYesAbsolute path to the .xcresult file

Input Schema (JSON Schema)

{ "properties": { "attachment_index": { "description": "Index number of the attachment to export (1-based, from xcresult-list-attachments)", "type": "number" }, "convert_to_json": { "description": "If true and attachment is an App UI hierarchy, convert to JSON format", "type": "boolean" }, "test_id": { "description": "Test ID or index number that contains the attachment", "type": "string" }, "xcresult_path": { "description": "Absolute path to the .xcresult file", "type": "string" } }, "required": [ "xcresult_path", "test_id", "attachment_index" ], "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