Upload Attachment
confluence_upload_attachmentUpload files to Confluence pages or blog posts. Add documents, images, or supporting materials to content, and update existing attachments with new versions.
Instructions
Upload an attachment to Confluence content (page or blog post).
If the attachment already exists (same filename), a new version is created. This is useful for:
Attaching documents, images, or files to a page
Updating existing attachments with new versions
Adding supporting materials to documentation
Args: ctx: The FastMCP context. content_id: The ID of the content to attach to. file_path: Path to the file to upload. comment: Optional comment for the attachment. minor_edit: Whether this is a minor edit (no notifications).
Returns: JSON string with upload confirmation and attachment metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content_id | Yes | The ID of the Confluence content (page or blog post) to attach the file to. Page IDs can be found in the page URL or by using the search/get_page tools. Example: '123456789' | |
| file_path | Yes | Full path to the file to upload. Can be absolute (e.g., '/home/user/document.pdf' or 'C:\Users\name\file.docx') or relative to the current working directory (e.g., './uploads/document.pdf'). If a file with the same name already exists, a new version will be created. | |
| comment | No | (Optional) A comment describing this attachment or version. Visible in the attachment history. Example: 'Updated Q4 2024 figures' | |
| minor_edit | No | (Optional) Whether this is a minor edit. If true, watchers are not notified. Default is false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |