insert_cell
Insert a new code or markdown cell at a specified index in a Jupyter notebook. Programmatically add cells in ascending order to maintain cell order.
Instructions
Insert a cell at the specified index. When inserting many cells, MUST insert them in ascending 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>",
"cell_type": "<cell_type>",
"cell_content": "<cell_content>"
},
"name": "insert_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell_type | Yes | ||
| cell_index | Yes | Cell index to insert at (0-based) | |
| cell_content | Yes | ||
| notebook_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |