add_cell
Insert a new cell into a Jupyter notebook at a specified position, with support for custom source code and cell type.
Instructions
Add a new cell to the notebook at the specified position.
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>",
"source": "<source>"
},
"name": "add_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| position | No | ||
| cell_type | No | ||
| notebook_path | Yes |