download_attachment
Retrieve a file attached to a Confluence page by providing the page ID and filename. Choose to receive the content as base64 or save it directly to a specified output file.
Instructions
Download an attachment from a page by filename.
Args: page_id: The page ID. filename: The attachment filename. output_file: If provided, save the attachment to this file path instead of returning base64 in the response.
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>",
"filename": "<filename>"
},
"name": "download_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| filename | Yes | ||
| output_file | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |