ipynb_delete_cells_batch
Delete multiple cells from a Jupyter Notebook by specifying their indices. Use to batch-remove unnecessary cells without a Jupyter server.
Instructions
Delete multiple cells by indices from a Jupyter Notebook (.ipynb).
Args: ipynb_filepath: Path to Jupyter Notebook (.ipynb) file (absolute path preferred) cell_indices: List of cell indices to delete (0-based indexing)
Returns: Dict with 'success', 'cells_deleted', 'new_cell_count' or 'error' key
Note: Deletions are processed in descending order to maintain index validity. Provide indices as they appear before any deletions occur.
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_indices": "<cell_indices>"
},
"name": "ipynb_delete_cells_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell_indices | Yes | ||
| ipynb_filepath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||