Upload attachment
upload_attachmentUploads one file from an allowed local path or HTTPS URL to a Polarion Work Item, Test Run, LiveDoc, or Rich Page and returns the attachment result.
Instructions
Uploads one file as a Polarion attachment to a Work Item, Test Run, LiveDoc, or Rich Page and returns the attachment result. Choose exactly one source: an absolute local path on stdio with MCP_UPLOAD_ROOTS, or an HTTPS URL on an allowlisted host with MCP_UPLOAD_URL_HOSTS. The authenticated Polarion user must have attachment write permission. Use dry_run to validate and preview name, size, and SHA-256; use the resource-specific attachment tools when editing existing attachment metadata or content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Absolute HTTPS URL whose hostname is listed in MCP_UPLOAD_URL_HOSTS; HTTP requires explicit server opt-in. | |
| title | No | Optional attachment title stored by Polarion. | |
| target | Yes | Polarion target reference; document and page targets also require spaceId. | |
| dry_run | No | Preview file metadata and digest without sending an attachment request. | |
| fileName | No | Optional attachment filename override without path separators; defaults to the source filename. | |
| filePath | No | Absolute local file path, available only over stdio and only under a configured MCP_UPLOAD_ROOTS directory. |