notebook_add_cell
Insert a new code, markdown, or raw cell after a specified index in a Jupyter notebook. Provide the notebook path, cell type, source content, and insertion index.
Instructions
Adds a new code or markdown cell after a specified 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": {
"path": "<path>",
"cell_type": "<cell_type>",
"source": "<source>",
"index": "<index>"
},
"name": "notebook_add_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the notebook | |
| index | Yes | Index after which to insert the cell | |
| source | Yes | Source content for the new cell | |
| cell_type | Yes | Type of cell to add |