Skip to Content

tool

Module: vibex/tool

Tool System for VibeX

Coordinates between custom tools and MCP tools. Knows nothing about specific tool implementations.

Interfaces

CoreTool

View source

Properties:

NameTypeDescription
descriptionstring
inputSchemaz.ZodSchema | any
execute(args: any, context?: any) => Promise<any>

Functions

buildToolMap

View source

Build 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:

NameTypeDescription
toolIdsstring[]
context\{ spaceId?: string \} (optional)

clearToolCache

View source

Clear MCP cache (useful for testing)

function clearToolCache(): void