media_restore_attachment
Restore an attachment's original file from backup and replace optimized versions. Use force to restore even if the attachment changed after optimization; backup cleanup prevents restore.
Instructions
Restore one attachment's original from its backup, replacing the optimized files. Fails when the backup was cleaned up; force: true restores even when the attachment was edited since.
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": {
"site": "<site>",
"id": "<id>"
},
"name": "media_restore_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Attachment id | |
| site | Yes | Site id (see list_sites) | |
| force | No | Restore even if the attachment changed since optimizing |