Skip to content

manage_attachments

Unified tool for Confluence page attachment operations.

ActionDescriptionRequired ParamsWrite Gated
listList all attachments on a pagepage_idNo
downloadDownload an attachmentattachment_idNo
uploadUpload a file as an attachmentpage_id, file_pathYes
deleteDelete an attachmentattachment_idYes
ParameterTypeDescription
actionstringRequired. list, download, upload, or delete
page_idstringPage ID (required for list, upload)
attachment_idstringAttachment ID (required for download, delete)
file_pathstringAbsolute path to the file to upload (required for upload). Note: paths refer to the MCP server’s filesystem. In stdio mode this is the local machine.
commentstringOptional comment for the attachment (for upload)
limitintResults per page (default 25)
cursorstringPagination cursor for next page
{
"action": "list",
"page_id": "12345678"
}

Response:

[
{
"id": "att55443322",
"title": "architecture-diagram.png",
"media_type": "image/png",
"file_size": 245760,
"page_id": "12345678",
"created": "2025-02-15T14:00:00Z",
"comment": "Updated diagram"
}
]
{
"action": "download",
"attachment_id": "att55443322"
}

Response:

{
"path": "/tmp/ctk-downloads/architecture-diagram.png",
"filename": "architecture-diagram.png",
"media_type": "image/png",
"size_bytes": 245760
}
{
"action": "upload",
"page_id": "12345678",
"file_path": "/path/to/report.pdf",
"comment": "Q4 report"
}

Response:

{
"id": "att55443323",
"title": "report.pdf",
"media_type": "application/pdf",
"file_size": 51200,
"status": "uploaded"
}
{
"action": "delete",
"attachment_id": "att55443322"
}

Response:

Attachment deleted successfully