Request a direct upload URL
request_attachment_uploadObtain a signed PUT URL to upload large files directly, avoiding the 5 MB inline limit and 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 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 |