Get an upload link for a photo
request_photo_uploadFor a photo file on the assistant's own machine: returns an uploadUrl. The file's bytes are PUT there with the returned headers within 10 minutes, and the uploadId then goes to add_listing_photos.
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": {
"draftId": "<draftId>",
"filename": "<filename>",
"mimeType": "<mimeType>",
"size": "<size>"
},
"name": "request_photo_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | The file's size in bytes (at most 25 MB). | |
| sha256 | No | Optional: the file's SHA-256, lowercase hex. | |
| draftId | Yes | The draftId start_listing returned. | |
| filename | Yes | The photo file's name, like 'living-room.jpg'. | |
| mimeType | Yes | The file type: image/jpeg, image/png, image/webp, image/heic or image/heif. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No |