Member Junction
    Preparing search index...

    Registry for client-side tools that agents can invoke.

    Tools are registered by the client application and can be executed when the agent sends a ClientToolRequest over the transport.

    Index

    Constructors

    Methods

    • Execute a registered tool with timeout protection.

      Parameters

      • name: string

        The name of the tool to execute

      • params: Record<string, unknown>

        Parameters to pass to the tool handler

      • timeoutMs: number = DEFAULT_TOOL_TIMEOUT_MS

        Maximum execution time in ms (default: 30s)

      Returns Promise<ClientToolResult>

      The tool result, or a timeout/not-found error result

    • Unregister a client-side tool.

      Parameters

      • toolName: string

        The name of the tool to unregister

      Returns void