Undo library apply
undo_library_applyReverse an applicable library apply by replaying its stored inverse as a new journal operation, restoring the prior projection revision; stale revisions are refused.
Instructions
Reverse the latest applicable library apply by replaying its stored inverse as a new journal operation. Use to undo the apply that produced the current projection revision; use apply_reshelving for a new proposal or pin_shelf for one item's shelf choice. Requires a dashboard user_intent_token. The inverse is itself reversible; identical operation_key retries replay the receipt, and stale revisions are refused.
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": {
"apply_id": "<apply_id>",
"expected_projection_revision": "<expected_projection_revision>",
"operation_key": "<operation_key>",
"user_intent_token": "<user_intent_token>"
},
"name": "undo_library_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply_id | Yes | Journal apply identifier whose resulting projection revision is still current. | |
| operation_key | Yes | Client-generated key for an identical-operation retry; do not reuse it for different arguments. | |
| user_intent_token | Yes | Operation-bound capability minted after local dashboard confirmation; agents cannot mint it or substitute an actor field. | |
| expected_projection_revision | Yes | Current label-projection revision from the library response; stale writes are refused. |