Check a media upload
confirm_uploadChecks an upload started with create_upload_url: the file arrived, is within the size limit and really is the declared type, and reports its media type, size, dimensions and duration. Returns the asset_url to pass to generation tools. A file that fails the check is deleted. Generation tools run the same check themselves, so this call is optional.
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": {
"upload_id": "<upload_id>"
},
"name": "confirm_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload_id | Yes | The upload_id returned by create_upload_url. |