Put a document back the way it was
restore_docUndo the last write to a document, restoring a changed passage or whole write, and block the restore if later edits exist unless explicitly overridden.
Instructions
Undo the last write to a document: a changed passage or a whole write is put back; appends and the person's saves keep nothing to undo. Refused if written since, unless even_if_more. Undoing twice returns it. Use it when a write answers something unexpected, instead of retyping.
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": {
"doc": "<doc>"
},
"name": "restore_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | A document's id, not its title, or a task's to put back the assistant's notes on its page | |
| even_if_more | No | Go back over what was written since too; only once you read it and know, since the person may have written it |