colab_notebook_run_cell
Run one code cell in a persistent Colab runtime, save its output to the notebook, report ok/ERROR status, and store displayed plots under .colab-mcp/images/.
Instructions
Run ONE code cell on the runtime (state persists between cells) and store its output in the notebook. Reports ok/ERROR status. A displayed plot is saved under .colab-mcp/images/.
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>"
},
"name": "colab_notebook_run_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell | Yes | ||
| path | Yes | ||
| session | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |