eda_sys_external_api_register
Registers a custom external API in the EDA window, letting plugins or scripts expose functions for external calls.
Instructions
sys_ExternalApi.register(namespace: string, apiName: string, callFn: (...args: any[]) => any | Promise, help?: ISYS_ExternalApiHelp) -> void 注册一个上层接口
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_external_api_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |