Upload attachment
upload_attachmentUpload a small file (≤5MB) to a wiki page, then use the returned markdown snippet to embed images inline or add download cards.
Instructions
Upload a file (base64) and attach it to a page (editor+) — an image, PDF, dataset, etc. Returns the serve URL plus a ready-to-paste markdown snippet; then call update_page or patch_page to place it in the body (images render inline as , other files as a download card). The payload is inline base64 and rides through the model's context, so it is capped at 5 MB — keep it to small files (screenshots, charts, short PDFs). For larger files use request_attachment_upload (a direct PUT URL, bytes off-context), or the tela editor (drag-drop).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | file name including extension, e.g. report.pdf or chart.png (drives the displayed name + type detection) | |
| page_id | Yes | page to attach the file to | |
| data_base64 | Yes | the file bytes, base64-encoded; a leading data:<mime>;base64,… URL prefix is also accepted |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment | Yes |