restore_tool_version
Restore a tool's draft to a previous version. The current draft is snapshotted, enabling undo, and only the draft is changed, leaving the live version untouched.
Instructions
Roll a tool's DRAFT back to an earlier version. Takes the versionId (a UUID from list_tool_versions), NOT the checkpoint number. The current draft is snapshotted first, so this is itself undoable. It changes only the draft — what is live stays live until a human approves a new publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The tool's id. | |
| versionId | Yes | The version row's UUID. | |
| expectedVersion | Yes | The draft version you last read — 409 if stale. |