get_test_record_attachment_content
Fetch a test record's attachment content from Polarion, rendering images and SVG markup for immediate viewing.
Instructions
Fetch a test record attachment's content for viewing.
PNG, JPEG, GIF, and WebP return as a viewable image; SVG returns its source markup as text. Any other extension is rejected before any request. Use get_document_attachment_content or get_work_item_attachment_content for the other domains. Use list_test_record_attachments to discover attachment ids, file names, and sizes.
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_id": "<project_id>",
"test_run_id": "<test_run_id>",
"test_case_id": "<test_case_id>",
"attachment_id": "<attachment_id>"
},
"name": "get_test_record_attachment_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iteration | No | Record iteration number (0-based). | |
| project_id | Yes | Polarion project ID. | |
| test_run_id | Yes | Test run ID (e.g. 'TR-2026-01'). | |
| test_case_id | Yes | Full test case work item ID 'project/WI-id' as returned by list_test_records. | |
| attachment_id | Yes | Attachment id ({testCaseId}_{fileName} token) from list_test_record_attachments. |