interrupt
Sends a kernel interrupt signal to the currently running execution to stop it early. Use it to halt long-running or stuck Python code in the persistent kernel.
Instructions
向当前正在运行的 execution 发送 kernel 中断信号。
中断语义
kernel 到达 IOPub idle 后,记录才会报告 interrupted、
error 或其他最终状态。kernel 空闲时返回 idle。
Returns:
已发送信号时返回目标 execution;kernel 空闲时返回 idle。
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": "interrupt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||