upload_attachment
Attach a file to a Confluence page by providing a local path or base64 content. Specify the page ID, and optionally set filename, content type, and comment.
Instructions
Upload a file as an attachment to a page.
Can upload from a local file (input_file) or from base64 content.
Args: page_id: The page ID. filename: Name for the attachment (auto-detected from input_file if not given). content_base64: File content as base64 (ignored if input_file is provided). content_type: MIME type (auto-detected from filename if not given). comment: Optional comment for the attachment. input_file: Path to a local file to upload directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | ||
| page_id | Yes | ||
| filename | No | ||
| input_file | No | ||
| content_type | No | ||
| content_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |