history_purge
Delete Word document undo history for privacy, either the whole log or entries before a UTC date. Run a dry run first to get a confirm token, then purge.
Instructions
Delete undo history for privacy: the whole log (all) or entries before a date (before, ISO 8601, UTC), of the document or of an orphaned store. Two steps: run with dry_run to see what would go and get a confirm token, then repeat with confirm; a log that changed in between is refused. Leaves a tombstone entry; backups are not removed by it. Destructive: purged entries can no longer be undone or restored. Use history.list first to check what you remove.
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": "history_purge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Remove the whole log. | |
| doc | No | Path to the .docx. | |
| store | No | A store folder (see history.orphans) to read instead of the document's own. | |
| before | No | Remove entries older than this ISO date or time (UTC). | |
| confirm | No | From the dry run. | |
| dry_run | No | List what would go; returns confirm. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Always true on success. | |
| op | Yes | The operation that ran. | |
| api | Yes | API version (1.0). | |
| doc | No | The document read or written: path, sha256 and paragraph count. | |
| next | Yes | Cursor for the next page (pass as cursor), or null. | |
| result | Yes | What the operation returns. | |
| warnings | Yes | Things to know about the result. |