Upload attachment
upload_attachmentAttach a small base64 file (image, PDF, dataset) to a tela page and get a serve URL, share link, and markdown snippet for insertion.
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). It also returns
share_url — the link to give a PERSON who asks for the file, since it previews it and unfurls as a card, unlike the raw download_url. 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 |