delete_doc
Soft-delete documents or files by moving them to recoverable .trash/ in one attributed commit; remote mirrors are refused.
Instructions
Soft-delete a document or any file (a PDF, an image, an Office file): it moves to .trash/, recoverable, in one commit attributed to you. Refuses on remote mirrors (remotes/). To bring it back: undo_run with the run's id and paths (agent_runs gives the id), or the viewer's Trash; doc_revert cannot. To rename, use move_doc.
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": {
"path": "<path>",
"ai": "<ai>"
},
"name": "delete_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ai | Yes | Your AI family in lowercase (claude, chatgpt, gemini), not the model name. Attributes the change. | |
| path | Yes | The doc or file to delete, e.g. notes/old.md or files/scan.pdf. |