cell_add
Add a new cell to any Jupyter notebook. Specify the cell content, type (code, markdown, or raw), and insertion position.
Instructions
Add a new cell to a notebook.
name: notebook name (with or without .ipynb)
source: the cell content / code
cell_type: 'code', 'markdown', or 'raw' (default: 'code')
position: index to insert at (0 = first cell, -1 = append at end) Returns the new cell's ID and 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": {
"name": "<name>",
"source": "<source>"
},
"name": "cell_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| source | Yes | ||
| cell_type | No | code | |
| position | No |