Start uploading a photo
start_photo_uploadFor agents that can send a file themselves, such as Claude Code, Codex or Cursor with a shell: a signed
link that uploads one photo from disk straight to storage, for 15 minutes. JPEG, PNG, WebP, AVIF or HEIC,
up to 25 MB; the type and exact size in bytes are part of the signature. Send the file's bytes with
method to url with headers (curl -X PUT -H "Content-Type: …" --data-binary @photo.jpg ""),
then call add_photo with photo_id. In a chat, where you can't send files, use upload_photos or
add_photo_from_url instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"content_type": "<content_type>",
"size": "<size>"
},
"name": "start_photo_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | The file's exact size in bytes; up to 25 MB. | |
| content_type | Yes | The type the file will be sent as: image/jpeg, image/png, image/webp, image/avif or image/heic. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| method | Yes | ||
| headers | Yes | Send these exactly. The browser sets Content-Length from the file. | |
| photo_id | Yes | The photo's id, for addPhoto. | |
| expires_at | Yes |