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.
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": {
"path": "<path>"
},
"name": "notebook_rev"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |