confluence_add_attachment
Attach files to Confluence pages using local file path or base64 encoded content.
Instructions
Add an attachment to a Confluence page. Provide either filePath (local file) or fileContent (base64).
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>"
},
"name": "confluence_add_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | The page ID to attach file to | |
| filePath | No | Local file path to attach (e.g., "/path/to/file.svg"). If provided, filename is auto-detected. | |
| filename | No | The filename for the attachment (optional if filePath is provided) | |
| fileContent | No | Base64 encoded file content (alternative to filePath) |