tool
Module: vibex/tool
Tool System for VibeX
Coordinates between custom tools and MCP tools. Knows nothing about specific tool implementations.
Interfaces
CoreTool
View sourceProperties:
| Name | Type | Description |
|---|---|---|
description | string | |
inputSchema | z.ZodSchema | any | |
execute | (args: any, context?: any) => Promise<any> |
Functions
buildToolMap
View sourceBuild a tool map for streamText from an array of tool IDs Delegates to appropriate providers without knowing their internals
function buildToolMap(toolIds: string[], context?: { spaceId?: string }): Promise<Record<string, CoreTool>>Parameters:
| Name | Type | Description |
|---|---|---|
toolIds | string[] | |
context | \{ spaceId?: string \} (optional) |
clearToolCache
View sourceClear MCP cache (useful for testing)
function clearToolCache(): void