cell_update
Update the source content of any cell in a Jupyter notebook. For code cells, clears existing outputs to reflect code changes.
Instructions
Update the source content of a cell. For code cells, this clears existing outputs and execution count since the code has changed. Use notebook_get to find cell IDs.
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>",
"cell_id": "<cell_id>",
"source": "<source>"
},
"name": "cell_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| cell_id | Yes | ||
| source | Yes |