Revision Revert
revision_revertRevert a Drupal entity to a specific revision by applying that revision's field values to the current version; failed updates leave the entity unchanged.
Instructions
Revert an entity to a specific revision.
Applies the revision's field values to the current entity. A PATCH that Drupal rejects is atomic, so a failure leaves the entity untouched.
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": {
"entity_type": "<entity_type>",
"entity_id": "<entity_id>",
"revision_id": "<revision_id>"
},
"name": "revision_revert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | ||
| entity_type | Yes | ||
| revision_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||