eda_sys_web_socket_send
Send strings or binary data to a WebSocket server from the active EDA window, enabling real-time communication with external services.
Instructions
sys_WebSocket.send(id: string, data: string | Blob | BufferSource, 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_send"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |