execute_notebook_cell
Execute a single cell in a Jupyter notebook by its index and return the outputs.
Instructions
Execute a specific cell in a Jupyter notebook.
Args:
notebook_path: Absolute path to the .ipynb file
cell_index: Index of the cell to execute (0-based)
kernel_name: Jupyter kernel to use for execution
timeout: Execution timeout in seconds
Returns:
Execution result with 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": "execute_notebook_cell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| cell_index | Yes | ||
| kernel_name | No | python3 | |
| notebook_path | Yes |