ipynb_delete_cell
Delete a cell at a specified index from a Jupyter Notebook (.ipynb) file. Provide the notebook path and cell index to remove the cell and receive the updated cell count.
Instructions
Delete cell at specified index in a Jupyter Notebook (.ipynb).
Args: ipynb_filepath: Path to Jupyter Notebook (.ipynb) file (absolute path preferred) cell_index: Index of cell to delete (0-based indexing)
Returns: Dict with 'success' and 'new_cell_count' or 'error' key
Note: Indices of cells after the deleted cell will shift by -1
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": {
"ipynb_filepath": "<ipynb_filepath>",
"cell_index": "<cell_index>"
},
"name": "ipynb_delete_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell_index | Yes | ||
| ipynb_filepath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||