kernel_restart
Restart the IPython kernel to clear all variables, imports, and state. Pending executions are discarded while the connection is preserved, so no reconnection is needed before running new code.
Instructions
Restart the kernel, clearing all variables, imports, and state.
Pending executions are discarded. The kernel process is replaced but the connection is preserved — no need to call kernel_start again.
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": "kernel_restart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |