jupyter_execute_cell
Execute a specific Jupyter notebook cell by index, returning outputs and saving results to the notebook file.
Instructions
Execute a specific cell in a notebook.
This will:
Connect to the notebook's kernel (or create one)
Execute the cell's code
Save outputs to notebook file (visible in VS Code)
Return the execution 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": {
"notebook_path": "<notebook_path>",
"cell_index": "<cell_index>"
},
"name": "jupyter_execute_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notebook_path | Yes | Path to the notebook | |
| cell_index | Yes | Index of the cell to execute (0-based) | |
| timeout | No | Execution timeout in seconds (default: 300) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |