move_cell
Move a Jupyter notebook cell to a specified index position by providing its current index or stable ID. Optionally guard against concurrent edits with an expected revision.
Instructions
Move a cell to to_index (final position, 0-based).
Address the moved cell by from_index OR from_id (stable id; exactly one);
the destination to_index is always positional. Does not clear outputs.
Optionally pass expected_rev to guard against concurrent external edits.
Returns the new rev.
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>",
"to_index": "<to_index>"
},
"name": "move_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| from_id | No | ||
| to_index | Yes | ||
| from_index | No | ||
| expected_rev | No |