colab_notebook_edit_cell
Replace a notebook cell's source or type by ID or index, and clear its stale outputs, so Colab notebooks stay updated.
Instructions
Replace a cell's source (and optionally its type). cell is an id or an index. Clears that cell's stale outputs.
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>",
"cell": "<cell>",
"source": "<source>"
},
"name": "colab_notebook_edit_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | ||
| path | Yes | ||
| source | Yes | ||
| cell_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |