notebook_edit_cell
Edit a Jupyter notebook cell by replacing its source code or markdown text. Optionally create a timestamped backup before the change.
Instructions
Replace the source of a cell.
A timestamped .checkpoint_*.ipynb backup is written before the change unless checkpoint=false.
Args: notebook_path: Path to the .ipynb file, relative to the workspace root. cell_index: Zero-based index of the cell to edit. source: New source code or markdown text. checkpoint: Write a backup before editing (default: true).
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": {
"notebook_path": "<notebook_path>",
"cell_index": "<cell_index>",
"source": "<source>"
},
"name": "notebook_edit_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| cell_index | Yes | ||
| checkpoint | No | ||
| notebook_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |