Attach a file from a web address
xora_upload_from_urlFetches a file from a public https address and stages it as a one-time upload for an action that takes a file, after the same type and size checks a direct upload meets. Private, loopback and link-local addresses, non-https addresses and every redirect to one are refused. When the state is ready, upload_reference is the value the upload action accepts as its upload_id argument; it expires after ten minutes and is used once.
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": {
"action": "<action>",
"url": "<url>"
},
"name": "xora_upload_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A public https address of the file. Private, loopback and link-local addresses are refused, every redirect is checked again, and the file must fit the action's type and size limits. | |
| action | Yes | The action that takes the file, e.g. upload_social_media. | |
| filename | No | The name to keep for the file; taken from the address when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| message | Yes | When reason_code is rate_limited: a plain sentence saying when to try again; null otherwise. | |
| byte_size | Yes | ||
| mime_type | Yes | ||
| upload_id | Yes | ||
| expires_at | Yes | ||
| reason_code | Yes | Why nothing was fetched (not_an_upload_action, insufficient_scope, switch_off, rate_limited, ...); null otherwise. | |
| rejection_code | Yes | Why the fetched file was not staged (too_large, type_not_allowed, url_not_allowed, fetch_failed, ...); null when ready. | |
| intended_action | Yes | ||
| upload_reference | Yes | The value an upload-taking action accepts as upload_id; set only when state is ready. | |
| retry_after_seconds | Yes | When reason_code is rate_limited: about how many seconds until a file can be staged again; null otherwise. |