Finish uploads
finish_uploadsBatch form of finish_upload: turn bytes already sent to storage into assets, all on the same folder. Include only the items whose byte transfers actually succeeded. IMPORTANT — this call is NOT atomic: it creates the assets one at a time and does not roll back, so a failure partway through leaves the earlier ones created while the call reports an error. Never retry it after a failure; see the recovery steps in the error itself.
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": {
"batch_id": "<batch_id>",
"assets": "<assets>"
},
"name": "finish_uploads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assets | Yes | Completed uploads (1-50) | |
| batch_id | Yes | The batch_id create_upload_urls returned. Required: it is the only thing that releases the quota Playbook reserved for this batch, and an unreleased reservation counts against the workspace's asset and storage limits. | |
| organization | No | Workspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one. | |
| collection_token | No | Destination folder token, applied to every asset in the batch. If omitted or unknown, Playbook silently routes to a default anonymous folder — call get_folder first to validate. |