poll_for_upload
Poll S3 bucket waiting for photo upload to complete. Returns a presigned download URL when the file is ready. The same session_id can be used to poll for new uploads multiple times, allowing the capture URL to be reused.
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": {
"session_id": "<session_id>"
},
"name": "poll_for_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Max seconds to wait for upload | |
| not_etag | No | Only detect files with different ETag than this value, used to poll for new uploads | |
| session_id | Yes | Session ID to poll for, in UUID format | |
| modified_since | No | Only detect files modified after this date in ISO 8601 or HTTP date format |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| etag | Yes | ETag of the uploaded file, can be used with not_etag parameter for subsequent polls | |
| download_url | Yes | Presigned GET URL to download the uploaded photo, valid for 7 days | |
| last_modified | No | Last modified timestamp of the uploaded file from S3 |