mcp-use TypeScript API
    Preparing search index...

    Interface InspectorMessagePart

    Text or completed tool invocation in an inspector message.

    interface InspectorMessagePart {
        text?: string;
        toolInvocation?: {
            args: Record<string, unknown>;
            result?: unknown;
            toolName: string;
        };
        type: "text"
        | "tool-invocation";
    }
    Index
    text?: string

    Text content when type is "text".

    toolInvocation?: {
        args: Record<string, unknown>;
        result?: unknown;
        toolName: string;
    }

    Invocation details when type is "tool-invocation".

    Type Declaration

    • args: Record<string, unknown>

      Tool arguments.

    • Optionalresult?: unknown

      Completed result. Omit while the invocation is pending.

    • toolName: string

      Tool name.

    type: "text" | "tool-invocation"

    Message part kind.