confluence_attachment_update
Update an existing Confluence attachment by uploading a new file version. Provide the page ID, attachment ID, and local file path to replace the current binary content with a new version and record optional comments.
Instructions
Upload a new binary version of an EXISTING Confluence attachment (by page_id + attachment_id from confluence_attachment_list), bumping its version instead of creating a second attachment. file_path is a path on the MCP server's filesystem (streamed from disk). Optional filename / comment / minor_edit as with upload. Returns YAML describing the updated attachment. Mirrors omni-dev atlassian confluence attachment update.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"page_id": "<page_id>",
"attachment_id": "<attachment_id>",
"file_path": "<file_path>"
},
"name": "confluence_attachment_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Optional version comment recorded with the new version. | |
| page_id | Yes | Confluence page ID the attachment lives on. | |
| filename | No | Override the filename used in Confluence (defaults to the local basename). | |
| file_path | Yes | Local filesystem path whose contents become the new version. Streamed from disk (never fully buffered in memory). | |
| minor_edit | No | Marks the new version as a minor edit. Defaults to false. | |
| attachment_id | Yes | Attachment ID to update (from `confluence_attachment_list`). |