getTools
codebolt.tool.getTools(tools: Array<{ toolbox: string, toolName: string }>): Promise<undefined>
Retrieves detailed information about specific tools from their toolboxes, including schemas and parameters.
Parameters
Name | Type | Description |
---|---|---|
tools | Array<{ toolbox: string, toolName: string }> | Array of tool identifiers specifying toolbox and tool name pairs |
Example
// Get details for specific tools
const toolsToGet = [
{ toolbox: 'filesystem', toolName: 'read_file' },
{ toolbox: 'sqlite', toolName: 'list_tables' },
{ toolbox: 'filesystem', toolName: 'write_file' }
];
const toolDetails = await codeboltMCP.getTools(toolsToGet);
console.log("Tool Details:", toolDetails);
// Process tool information
console.log("Tools requested:", toolsToGet.length);
console.log("Tool details received:", toolDetails?.length || 0);
Single Tool Query
// Get details for a single tool
const singleTool = await codeboltMCP.getTools([
{ toolbox: 'filesystem', toolName: 'read_file' }
]);
console.log(singleTool)
Status
comming soon....