For AI agents: the complete documentation index is available at https://scriptedalchemy.github.io/agent-bundle/zh/llms.txt, the full documentation bundle is available at https://scriptedalchemy.github.io/agent-bundle/zh/llms-full.txt, and this page is available as Markdown at https://scriptedalchemy.github.io/agent-bundle/zh/api/interfaces/test_browser.MountedBrowserApp.md.
  • 简体中文
  • Interface: MountedBrowserApp

    Properties

    bridge

    readonly bridge: McpAppBridge


    document

    readonly document: Document


    hostTraffic

    readonly hostTraffic: BrowserAppHostTraffic


    iframe

    readonly iframe: HTMLIFrameElement


    pendingConsentChallenges

    readonly pendingConsentChallenges: readonly McpAppConsentChallenge[]


    provenance

    readonly provenance: BrowserAppProvenance


    traffic

    readonly traffic: readonly BrowserAppTraffic[]

    Methods

    decideConsent()

    decideConsent(challengeId, approved): Promise<boolean>

    Parameters

    challengeId

    string

    approved

    boolean

    Returns

    Promise<boolean>


    dispose()

    dispose(): Promise<void>

    Returns

    Promise<void>


    publishHostContextChanged()

    publishHostContextChanged(context): boolean

    Parameters

    context

    McpAppBridgeJsonRecord

    Returns

    boolean


    publishToolCancelled()

    publishToolCancelled(reason?): boolean

    Parameters

    reason?

    string

    Returns

    boolean


    publishToolInput()

    publishToolInput(input?): boolean

    Parameters

    input?

    McpAppBridgeJsonRecord

    Returns

    boolean


    publishToolResult()

    publishToolResult(result): boolean

    Parameters

    result

    McpAppJsonValue

    Returns

    boolean