Request a direct upload URL
request_attachment_uploadGet a short-lived signed PUT URL so the host can upload raw file bytes without routing them through model context, for files over 5 MB or to avoid context bloat.
Instructions
Get a short-lived signed PUT URL to upload a file WITHOUT sending its bytes through the model context — for files over upload_attachment's 5 MB inline cap, or to avoid context bloat. Flow: call this → the host PUTs the raw bytes to the returned put_url over HTTP → then either read that PUT response or call confirm_attachment_upload to get the embed snippet (and share_url, the link for a person), and place it with update_page/patch_page. Editor+. Only works on hosts that can make an outbound HTTP PUT; otherwise use upload_attachment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | optional content-type hint; for images the server still trusts magic bytes | |
| name | Yes | file name including extension, e.g. deck.pdf or photo.png | |
| page_id | Yes | page to attach the file to |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload | Yes |