upload_image_and_embed
Upload an image to a Confluence page from a local file or base64 content, and embed it as an attachment, optionally replacing an external image URL.
Instructions
Upload an image and optionally embed it in the page.
Can upload from a local file (input_file) or from base64 content.
Args: page_id: The page ID. filename: Name for the image file (auto-detected from input_file). image_base64: Image content as base64 (ignored if input_file is provided). content_type: MIME type (auto-detected from filename if not given). replace_url: If provided, replaces this external image URL in the page body with the new attachment reference. input_file: Path to a local image file to upload directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| filename | No | ||
| input_file | No | ||
| replace_url | No | ||
| content_type | No | image/png | |
| image_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |