Discard your upload
discard_uploadMove an image you uploaded through this connection to the bin. Only for images that no page uses, in a draft, live, in the bin or in an earlier version, and that no person or other connection has changed; a refusal lists where it is used. A person can restore it from the bin.
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": {
"mediaId": "<mediaId>"
},
"name": "discard_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mediaId | Yes | The id upload_media returned. |