Undo an AI change to a WikiDrive document
wikidrive_undo_docRevert an AI's latest change to a WikiDrive document: newly created docs go to trash for 30 days, while additions or edits roll back to the prior version with history preserved.
Instructions
Undo the latest change an AI made to one of the user's WikiDrive documents: a document an AI just created goes to the WikiDrive trash (restorable for 30 days); an AI's addition or change is reverted to the version before it, and the history keeps both. Use it when the user says 'undo' or '취소' after a document message, with the prompt_id and version that message showed; call it again with the new version to go back one more change. If the document changed in WikiDrive since, nothing is undone. Rules are undone with wikidrive_revise. Afterwards tell the user the returned message in one line, in the user's language.
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": {
"prompt_id": "<prompt_id>",
"version": "<version>"
},
"name": "wikidrive_undo_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | The version the document message showed. | |
| prompt_id | Yes | The document's prompt_id, as the document message showed it. | |
| idempotency_key | No | Optional. A new random key (e.g. a UUID) for each call; reuse it only to retry the same call after an unclear result. |