Run with Browser AI · Chapter 02

Run Chapter 02 with Browser AI

Observe the difference between API exposure, operational availability, model acquisition and session readiness.

← Read What Does Built-In Actually Mean?
Execution Not inspected
Secure contextUnknown
Top-level pageUnknown
Prompt APIUnknown
AvailabilityNot inspected

Chapter experiment

What Does Built-In Actually Mean?

Metrics-only trace

Loading the chapter experiment…

No model output yet.
Inspect the context supplied by this chapter

What this experience knows

This experience is grounded in Chapter 02 and its model of browser-managed AI.

Central distinction

Interface exposure asks whether LanguageModel exists in the current JavaScript context. Operational availability asks whether the browser can create a session for a specific set of options. Neither means a session already exists.

Lifecycle

  • unsupported: the interface is not exposed in this page context;
  • unavailable: the requested session cannot be created here;
  • downloadable: browser-managed assets can be acquired after an explicit user action;
  • downloading: acquisition or preparation is in progress;
  • available: the options are accepted without a required model download;
  • session-ready: LanguageModel.create() resolved and returned a usable session;
  • running: a prompt request is active;
  • completed or failed: the observed operation reached a terminal state.

Correctness constraints

The same capability options must be supplied to LanguageModel.availability() and LanguageModel.create(). This experiment uses deterministic sampling compatible with speculative decoding: samplingMode: "most-predictable".

Evidence boundary

The lifecycle display is driven by observed calls and events. It does not animate hypothetical states. A replay reconstructs the path contained in a recorded trace and is always labelled as recorded evidence. Browser-managed does not mean permanently installed, instantly ready or tied to one model vendor.

This experience turns Chapter 02’s availability model into an observable state machine. Inspect the current browser, explicitly prepare a session, run a chapter-grounded prompt and see each state supported by the events the page actually receives.

If live Prompt API execution is unavailable, replay the reviewed Chrome trace. Replay is visibly labelled and never presented as evidence from the current browser.