get_document_attachment_content
Fetch and view document attachment content from Polarion. Returns PNG, JPEG, GIF, WebP as viewable images and SVG as source markup.
Instructions
Fetch a document 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_work_item_attachment_content for work item attachments. Use list_document_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>",
"space_id": "<space_id>",
"document_name": "<document_name>",
"attachment_id": "<attachment_id>"
},
"name": "get_document_attachment_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | Space ID ('_default' = default space). | |
| project_id | Yes | Polarion project ID. | |
| attachment_id | Yes | Attachment id (bare filename token) from list_document_attachments. | |
| document_name | Yes | Document name within space_id. |