jupyter_insert_cell
Insert a new code or markdown cell at a specific position in a Jupyter notebook, enabling precise control over notebook structure and content.
Instructions
Insert a new cell at a specific position in the notebook.
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_path": "<notebook_path>",
"cell_index": "<cell_index>",
"source": "<source>"
},
"name": "jupyter_insert_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notebook_path | Yes | Path to the notebook | |
| cell_index | Yes | Position to insert (0-based, cells after this shift down) | |
| source | Yes | Cell content (code or markdown) | |
| cell_type | No | Type of cell - 'code' or 'markdown' (default: code) | code |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |