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
Name | Required | Description | Default |
---|---|---|---|
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 | |
test_id | Yes | Test ID or index number that contains the attachment | |
xcresult_path | Yes | Absolute 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"
}