Start uploading a photo
app_start_photo_uploadCalled by Reeflip's app in the chat, never by you. Step 1 of an upload in the app: a signed link for one photo of this type and exact size, for 15 minutes.
The browser sends the file with method to url with headers, then calls app_finish_photo_upload
with photo_id. The link is a password to the upload while it works: never show or keep it.
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": "app_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 |