request_upload
Get a one-time way to send photos from the user's device to this server. Photos the user already sent are listed by inspect (what='uploads'), so a photo already there needs no new link. The result leads with page_url, a web page the user opens, from a phone camera roll or a browser; it works in every client. It also carries a curl command that uploads a file from a shell that can reach this host. On claude.ai with code execution on, a photo attached in chat is usually also a file under /mnt/user-data/uploads. A sandbox that blocks this host answers with a 403 or "host not allowed" every time, and the result's if_curl_blocked says how the user can allow it. Nothing announces a page upload: once the user has sent it, it shows up in inspect (what='uploads') as upload:<id>. A curl upload's JSON reply carries upload_id (or an uploads list). open_photo opens either with source "upload:". One link takes several photos: up to 10, and it closes 5 minutes after its last photo arrives and expires in 15 minutes; nothing else limits links (asking for another cancels none). The curl takes one file per command. An upload it produces can be opened from any of your signed-in connections, not only this one. Limits per photo: 40 MB and a pixel limit that depends on the workspace size (overview lists it). RAW camera files up to 100 MB are accepted too; they open on the larger workspace. For an image already online, pass its https:// URL to open_photo instead. Uploads and open photos belong to this server; a photo opened through another Editmamei connector stays with that connector.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| curl | No | ||
| token | No | ||
| page_url | No | ||
| expires_at | No | ||
| upload_url | No | ||
| if_curl_blocked | No | ||
| cancelled_link_minted_at | No | ||
| cancelled_link_token_prefix | No |