delete_cell
Remove a cell from a notebook using its index or cell ID. Optionally specify an expected revision to prevent conflicts from concurrent edits.
Instructions
Delete a cell, addressed by index (0-based) OR cell_id (exactly one).
Prefer cell_id from list_cells — an id can't drift onto the wrong cell the
way a stale index can. 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>"
},
"name": "delete_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| index | No | ||
| cell_id | No | ||
| expected_rev | No |