Ask the owner for a file
xora_upload_requestShows the owner a file picker in the conversation for an action that takes a file. The owner chooses the file there; it is checked against the action's type and size limits and staged as a one-time upload, and its upload_reference is then posted into the conversation. This call reserves one empty upload slot, unused after ten minutes, and returns a Xorventa page where the owner can choose the file instead; it changes nothing else.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | A short line shown to the owner above the picker, e.g. which post the image is for. | |
| action | Yes | The action the file is for, e.g. upload_social_media. | |
| post_id | No | The draft or scheduled post the media is for; only with upload_social_media. | |
| campaign_id | No | The campaign a new draft with this media is for; only with upload_social_media. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| state | Yes | ||
| action | Yes | ||
| post_id | Yes | ||
| run_with | Yes | The tool that runs the upload action once the file is ready. | |
| max_bytes | Yes | ||
| next_step | Yes | ||
| upload_id | Yes | The upload the owner can fill at owner_upload_url; its state is read by this id, and when ready its upload_reference is the value the action accepts as upload_id. | |
| attach_with | Yes | Where the uploaded media goes next, when a post or campaign was named. | |
| campaign_id | Yes | ||
| reason_code | Yes | ||
| accepted_types | Yes | ||
| owner_upload_url | Yes | A Xorventa page where the owner can choose the file instead of the card, valid for 10 minutes. |