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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_file | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |