connect_notebook
Establish a connection to a Jupyter notebook and its kernel. Required as the initial step before executing any notebook operations.
Instructions
Connect to a notebook and corresponding kernel. It is the FIRST STEP before ANY subsequent operations.
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": {
"server_url": "<server_url>",
"token": "<token>",
"notebook_name": "<notebook_name>",
"notebook_path": "<notebook_path>"
},
"name": "connect_notebook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | `connect`: connect to an existing notebook; `create`: create a new notebook (not exist) and connect; `reconnect`: reconnect to an existing notebook | connect |
| token | Yes | Jupyter authentication token | |
| server_url | Yes | Jupyter server URL (e.g., http://localhost:8888) | |
| notebook_name | Yes | Unique identifier, used to reference this notebook in subsequent operations | |
| notebook_path | Yes | Path to the notebook file relative to Jupyter server root (e.g., './analysis.ipynb') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |