await_upload
Wait for a file upload to land by polling the link from source_add. Handles pending and expired links, returning source details on success.
Instructions
Wait for a file uploaded via a source_add(source_type="file") link to land.
Pass the human_upload.url (or the bare token) that source_add returned.
Polls the server in-process until the browser/agent upload commits the source:
{"status":"received","source_id",...,"file":{...}}— the upload landed.{"status":"pending",...}— nothing yet after ~timeouts; re-invoke with the same link (the wait resumes; a transport reset does not lose it).{"status":"expired_or_invalid",...}— the link failed; mint a fresh one viasource_add(source_type="file").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| upload_link | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||