rollback_document
Restore a document to a previous version by specifying its DocType, document name, and version ID.
Instructions
Rollback a document to a previous version
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": {
"doctype": "<doctype>",
"name": "<name>",
"version_id": "<version_id>"
},
"name": "rollback_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Document name/ID | |
| doctype | Yes | DocType name | |
| version_id | Yes | Version document ID |