upload_attachment
Upload a file as an attachment to a Confluence page using its local absolute path. Optionally embed the attachment in the page body.
Instructions
Upload a file as an attachment to a Confluence page. The file must be specified by its absolute path on the local filesystem. Optionally embed the attachment in the page body.
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>",
"file_path": "<file_path>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Optional comment for the attachment | |
| page_id | Yes | The Confluence page ID to attach the file to | |
| file_path | Yes | Absolute path to the file to upload | |
| embed_in_body | No | If true, append the attachment reference to the page body after upload. Images will be embedded as <ac:image>, other files as download links. Defaults to false. |