docugen_discard_changes
Throw away the open edit session and restore the content as it was before your first edit. Pass the revision from docugen_get_document: if a human edited the document since your session opened, the call is refused instead of discarding their edit.
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": {
"documentId": "<documentId>",
"expectedRevision": "<expectedRevision>"
},
"name": "docugen_discard_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes | Document id | |
| expectedRevision | Yes | The revision returned by docugen_get_document |