xcresult_export_attachment
Export a specific attachment from Xcode test results by index, with option to convert App UI hierarchy attachments to JSON for analysis.
Instructions
Export a specific attachment by index - can convert App UI hierarchy attachments to JSON
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": {
"xcresult_path": "<xcresult_path>",
"test_id": "<test_id>",
"attachment_index": "<attachment_index>"
},
"name": "xcresult_export_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xcresult_path | Yes | Absolute path to the .xcresult file | |
| test_id | Yes | Test ID or index number that contains the attachment | |
| attachment_index | Yes | Index number of the attachment to export (1-based, from xcresult-list-attachments) | |
| convert_to_json | No | If true and attachment is an App UI hierarchy, convert to JSON format |