EarthSDK
官网
对象索引
详细搜索
正在准备搜索索引...
earthsdk3-mcp
ESMcpBridge
类 ESMcpBridge
层级
Destroyable
ESMcpBridge
索引
构造函数
constructor
方法
execute
list
Tools
register
Tool
构造函数
constructor
new
ESMcpBridge
(
objm
:
ESObjectsManager
,
wsUrl
?:
string
)
:
ESMcpBridge
参数
objm
:
ESObjectsManager
可选
wsUrl
:
string
返回
ESMcpBridge
方法
execute
execute
(
cmd
:
BridgeCommand
)
:
Promise
<
BridgeResult
>
参数
cmd
:
BridgeCommand
返回
Promise
<
BridgeResult
>
list
Tools
listTools
()
:
Promise
<
{
description
:
string
;
name
:
string
;
schema
:
any
}
[]
>
返回
Promise
<
{
description
:
string
;
name
:
string
;
schema
:
any
}
[]
>
register
Tool
registerTool
(
tool
:
CommandHandler
&
{
name
:
string
}
)
:
Promise
<
void
>
注册工具函数,只能在构造函数中调用,注册表模式不支持运行时动态注册
参数
tool
:
CommandHandler
&
{
name
:
string
}
返回
Promise
<
void
>
显示设置
成员可见性
继承
配色
自动
浅色
深色
目录
构造函数
constructor
方法
execute
list
Tools
register
Tool
官网
对象索引
详细搜索
EarthSDK
加载中……
注册工具函数,只能在构造函数中调用,注册表模式不支持运行时动态注册