add_attachment
Attach a file to a Confluence page using the page ID, filename, and base64-encoded content. Optionally include a version comment.
Instructions
Add an attachment to a Confluence page
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": {
"pageId": "<pageId>",
"filename": "<filename>",
"fileContentBase64": "<fileContentBase64>"
},
"name": "add_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | ID of the page to attach the file to | |
| comment | No | Optional comment for the attachment version | |
| filename | Yes | Desired filename for the attachment | |
| fileContentBase64 | Yes | Base64 encoded content of the file |