Restore media
restore_mediaRestores trashed media assets to their original folder, or to the library root when that folder no longer exists. Accepts up to 100 asset ids and skips ids not in the trash.
Instructions
Restore media assets from the trash. Each returns to its folder, or to the library root when that folder no longer exists (counted in movedToRoot). Ids not in the trash are skipped, so compare restored with requested.
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": {
"ids": "<ids>"
},
"name": "restore_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | The asset ids to restore, from list_trashed_media. At most 100 per call. |