eda_sys_web_socket_close
Closes an active WebSocket connection in the EDA window. Specify the connection ID and optional code/reason to terminate it.
Instructions
sys_WebSocket.close(id: string, code?: number, reason?: string, extensionUuid?: string) -> void
关闭 WebSocket 连接
remarks: 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 throw Error
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": "eda_sys_web_socket_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |