mcp-use TypeScript API
    Preparing search index...

    Interface AgentStep

    A completed MCP tool invocation yielded by MCPAgent.stream.

    interface AgentStep {
        action: AgentAction;
        observation: string;
    }
    Index
    action: AgentAction

    Tool invocation requested by the model.

    observation: string

    Serialized result returned by the tool.