connect_to_kernel
Connect to an existing IPython kernel using its connection file to resume persistent Python execution and preserve variables and state across calls.
Instructions
Connect to an existing IPython kernel using its connection file.
Args: connection_file: Path to the kernel connection JSON file. If not provided, uses the IPYTHON_MCP_CONNECTION environment variable.
Returns: Connection status message.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "connect_to_kernel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_file | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |