notebook_rev
Retrieve the current revision token of a notebook file to detect external changes and prevent conflicting edits.
Instructions
Get the notebook's current revision token: {"path", "rev"}.
rev is a short hash of the file's current on-disk content. Pass it as
expected_rev to a mutating tool to guard against a concurrent external edit
(e.g. the file being saved by an editor between your read and your write): if
the file changed since this rev, the write is refused so you can re-read.
Read-only. Mutating tools also return the new rev, so you can chain edits
without re-reading.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |