delete_cell
Delete a cell from a Jupyter notebook by providing its index. For multiple deletions, remove cells in descending order to avoid index shifting.
Instructions
Delete a specific cell. When deleting many cells, MUST delete them in descending order of their index.
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_name": "<notebook_name>",
"cell_index": "<cell_index>"
},
"name": "delete_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell_index | Yes | Cell index(0-based) | |
| notebook_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |