mcpwn API
    Preparing search index...

    Interface AgentObservation

    The full observation handed to the agent each step. This is exactly the JSON object serialized to a CommandAgent's stdin.

    interface AgentObservation {
        resources: AgentResourceView[];
        samplingPrompts: string[];
        scenario: string;
        step: number;
        task: string;
        tools: AgentTool[];
        transcript: TranscriptStep[];
        visibleText: string;
    }
    Index
    resources: AgentResourceView[]
    samplingPrompts: string[]

    Server-initiated sampling prompts delivered to the client, if any.

    scenario: string
    step: number

    1-based step index.

    task: string

    The benign task the agent was asked to perform.

    tools: AgentTool[]
    transcript: TranscriptStep[]
    visibleText: string

    Untrusted text the agent currently "sees": tool descriptions, resource bodies, sampling prompts and prior tool-result texts — NOT the task. Any lure lives here; this field is a convenience echo of the above.