ipython_stop
Terminate a stuck IPython session and free its name by killing the kernel, even while a cell is executing. Use as a fallback when code is wedged; note that the session namespace is lost.
Instructions
Stop a session, kill its kernel, and free the name. Always works, including while a cell is executing -- this is the escape hatch for a wedged session. The namespace is lost.
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": {
"name": "<name>"
},
"name": "ipython_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Session to stop. | |
| timeout_ms | No | Grace period before the kernel is killed. Default 5000. |