confluence_upload_attachment
Upload an attachment to a Confluence page. Supports local files or base64 data, and automatically updates existing files with the same name.
Instructions
Upload an attachment to a Confluence page. Supports local filePath or base64Data; same-name files are updated by default. Returns attachment fields and image storage markup when applicable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | Confluence page ID | |
| filePath | No | Local file path to upload from the MCP server machine | |
| base64Data | No | Base64 file content, optionally as a data URL | |
| fileName | No | Attachment file name. Required for base64Data; defaults to basename(filePath) | |
| contentType | No | MIME type such as image/png. Inferred from fileName when omitted | |
| comment | No | Attachment version comment | |
| minorEdit | No | Whether this attachment version is a minor edit (default true) | |
| overwrite | No | Update same-name attachment as a new version when true (default true); fail on duplicates when false |