getMcpTools
codebolt.mcp.getMcpTools(tools: string[]): Promise<any>
Retrieves a list of specified MCP tools.
Parameters
Name | Type | Description |
---|---|---|
tools | string[] | An array of tool names to retrieve. |
Returns:
Promise<any>
A promise that resolves with the list of requested MCP tools.Example
// Example: Retrieving a list of specific MCP tools
const tools = await codebolt.mcp.getMcpTools(["imageProcessor", "dataAnalyzer"]);
console.log("MCP Tools:", tools);