list_document_attachments
List a document's attachments as a paginated page in Polarion. Get attachment IDs that body references use, helping detect missing or invalid file references.
Instructions
List a document's attachments as a paginated page.
Document attachments only, not work item attachments. Returned id is the exact token a body references as attachment:{id}; Polarion never validates that reference, so a body may point at a missing file. Order is server-defined and not requestable. Use read_document for body context, list_documents for valid space/document ids.
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>"
},
"name": "list_document_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | Space ID ('_default' = default space). | |
| page_size | No | ||
| project_id | Yes | Polarion project ID. | |
| page_number | No | ||
| document_name | Yes | Document name within space_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| items | Yes | ||
| has_more | No | ||
| page_size | Yes | ||
| total_count | Yes |