Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/echoVic/blade-code
/ isToolEnabled
Method
isToolEnabled
src/tools/ToolManager.ts:141–144 ·
view source on GitHub ↗
* 检查工具是否启用
(toolName: string)
Source
from the content-addressed store, hash-verified
139
* 检查工具是否启用
140
*/
141
public isToolEnabled(toolName: string): boolean {
142
const
state = this.toolStates.get(toolName);
143
return
state?.enabled ?? false;
144
}
145
146
/**
147
* 调用工具
Callers
1
callTool
Method · 0.95
Calls
1
get
Method · 0.80
Tested by
no test coverage detected