update_cell
Replace a cell's source or rename it, clearing outputs and marking dependents stale. Optionally execute all stale cells immediately to complete the edit-run loop in one call.
Instructions
Replace a cell's source and/or rename it. expected_rev must be the
rev from your latest read of this cell (optimistic locking). Updating
source clears the cell's outputs and marks it (and dependents) stale.
run="stale" immediately executes every stale cell (the edit→run loop in
one call) and returns the execution results.
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": "<name>",
"expected_rev": "<expected_rev>"
},
"name": "update_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | none | |
| name | Yes | ||
| path | Yes | ||
| source | No | ||
| new_name | No | ||
| expected_rev | Yes |