edit_cells
Insert or delete cells in a Mathematica notebook by writing content with a specified style and position, or removing a cell by index.
Instructions
Insert or delete a cell. actions: write(content,style,position) | delete(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": {
"action": "<action>"
},
"name": "edit_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| style | No | Input | |
| action | Yes | ||
| anchor | No | ||
| content | No | ||
| notebook | No | ||
| position | No | end |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |