mcp-use TypeScript API
    Preparing search index...

    Type Alias ToolContextHandle<Name>

    ToolContextHandle:
        | PendingToolContext<Name>
        | ReadyToolContext<Name>
        | ErrorToolContext<Name>

    The rendering invocation's latched lifecycle.

    Partial and complete input notifications replace the same toolInput snapshot while pending. Because the MCP Apps notification has no tool name or request id, the first structured result or tool error is assumed to belong to the rendering invocation and becomes terminal. Content-only successes are valid ambient activity and are ignored.

    Type Parameters