notebook_edit_cell
Replace the source code of a specific cell in a Jupyter notebook by providing the notebook path, cell index, and new source content.
Instructions
Replaces the source content of a specific cell
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>",
"cell_index": "<cell_index>",
"new_source": "<new_source>"
},
"name": "notebook_edit_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the notebook | |
| cell_index | Yes | Index of the cell to edit | |
| new_source | Yes | New source content for the cell |