jupyter_execute_code
Execute Python code in a running Jupyter kernel using a specified kernel ID and optional timeout.
Instructions
Execute Python code in a running kernel.
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": {
"kernel_id": "<kernel_id>",
"code": "<code>"
},
"name": "jupyter_execute_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kernel_id | Yes | ID of the kernel to execute in | |
| code | Yes | Python code to execute | |
| timeout | No | Execution timeout in seconds (default: 300) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |