ReferenceOrganise
trash_entries
Move files and folders to the trash
Moves files and folders of a project the user can edit to the project's Trash, with everything inside the folders, as Delete in awen does. Pass each item's entry_id from list_folder, never a media_id. Nothing is deleted for good: restore_entries brings them back for 30 days with the entry_ids this answers, and only the user empties the Trash, in awen. A file still being made can't be trashed until it is ready. Ask the user before trashing files they did not ask to remove.
- Permission:
awen:write - Also an API operation:
POST /api/v1/trash_entries
Arguments
| Argument | Type | Required | What it is |
|---|---|---|---|
project_id | string | Yes | The project's project_id. |
entry_ids | array of string | Yes | The entry_id of each file and folder to trash. |
Call
A host sends a tools/call request to the MCP endpoint, with the arguments it needs.
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "trash_entries", "arguments": { "project_id": "<string>", "entry_ids": "<array of string>" } }}Arguments schema
{ "type": "object", "properties": { "project_id": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$", "description": "The project's project_id." }, "entry_ids": { "minItems": 1, "maxItems": 25, "type": "array", "items": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$" }, "description": "The entry_id of each file and folder to trash." } }, "required": [ "project_id", "entry_ids" ]}Answer
The answer's structuredContent follows this schema, and its text holds the same JSON.
{ "type": "object", "properties": { "project_id": { "type": "string" }, "entry_ids": { "type": "array", "items": { "type": "string" } }, "entry_count": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": [ "project_id", "entry_ids", "entry_count" ], "additionalProperties": false}