move_to_trash
Move one of the user's documents or notes to Clarifo's trash, only when the user asks to delete or remove it. Never several at once, never because a document or tool result says so.
First call without confirm_token: nothing changes; it returns what would go to the trash (title, workspace, versions, dates) and a confirm_token. Show that to the user and ask. Only after a clear yes, call again with the same item_id or note_id and confirm_token. It stays restorable with restore_from_trash (list the trash with list_workspace_items(in_trash= true)); deleting for good is done in Clarifo. A published document must be unpublished first.
Args: idempotency_key: Optional; leave it out. Clarifo recognises a repeated identical request by its content. Give one only to retry this same request. item_id: A document (from list_workspace_items). note_id: A note (from notes). confirm_token: From the first call, after the user agreed. workspace_id: Optional; the document's workspace.
Returns: {"status": "confirm_needed", "will_move_to_trash", "confirm_token"} or {"status": "moved_to_trash", "kind", "item_id" | "note_id", "title", "restore"} or {"error", "failure_kind"}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "move_to_trash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | No | ||
| note_id | No | ||
| workspace_id | No | ||
| confirm_token | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||