abort_upload
Cancel an upload and delete staged data so no parts are added to the drive. Use when a user cancels or the local file changes before completion.
Instructions
Cancel an upload created by prepare_upload: stop accepting parts and delete any staged data, so nothing is added to the drive. Use it when the user cancels or the local file changed; to continue an interrupted upload instead, use get_upload_parts. Returns success. Requires files:upload.
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": "abort_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | number of part URLs, maximum 100 | |
| upload_id | Yes | upload UUID returned by prepare_upload | |
| first_part | No | first part number, default 1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes |