notebook_add_cell
Add a code or text cell to a notebook, appending it or inserting it before a chosen index, so you can build and extend notebook content programmatically.
Instructions
Add a cell to a notebook. index=-1 appends; otherwise inserts before that 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>",
"source": "<source>"
},
"name": "notebook_add_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| index | No | ||
| source | Yes | ||
| cell_type | No | code |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |