overwrite_cell
Overwrite the content of a Jupyter notebook cell and get a diff comparison of the changes.
Instructions
Overwrite the content of a specific cell
It will return a comparison (diff style, + for new lines, - for deleted lines) of the cell's content.
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_name": "<notebook_name>",
"cell_index": "<cell_index>",
"cell_content": "<cell_content>"
},
"name": "overwrite_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell_index | Yes | Cell index(0-based) | |
| cell_content | Yes | ||
| notebook_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |