Context passed to a Toolset's setup hook when it activates.

interface ToolsetContext {
    updateTools(tools): void | Promise<void>;
}

Methods

Methods

  • Replace the toolset's tools. Useful for dynamic sources (e.g. an MCP server) whose tools are discovered after setup or change at runtime. Await the result to wait for tool changes to reach the active session.

    Parameters

    Returns void | Promise<void>