# lightpanda-io/browser architecture

> Architecture diagram of the GitHub repository lightpanda-io/browser, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lightpanda-io/browser
- Repository: https://github.com/lightpanda-io/browser

## Overview

1. **Purpose and principal workflow.** Lightpanda is a Zig-built headless browser for web automation and AI agents. An **Automation client** (for example Puppeteer over CDP) initiates the principal workflow by sending navigation and page-operation commands; Lightpanda creates an isolated browsing session, loads remote documents and resources, constructs and executes the page, then returns protocol results or serialized page output.

2. **Components**

**Command, protocol, and agent interfaces**
- **Automation Client** — null repository path: External CDP, WebDriver BiDi, or MCP consumer that requests browser contexts, pages, navigation, evaluation, and actions, as documented in the README.
- **CLI User** — null repository path: External operator invoking `fetch`, `serve`, `agent`, `run`, or `mcp` commands.
- **Command Host** — `src/App.zig`: Application-level command entry point, evidenced by the repository’s central application module and README command surface.
- **CDP Server** — `src/server/cdp`: Exposes Chrome DevTools Protocol and WebSocket automation access, documented as the server used by Puppeteer.
- **WebDriver BiDi Server** — `src/server/bidi`: Provides the optional WebDriver BiDi protocol selected through `serve --protocol webdriver`.
- **MCP Server** — `src/mcp`: Hosts MCP JSON-RPC over stdio or HTTP and, per documentation, maps clients to independently managed browsing sessions.
- **Native Agent** — `src/agent/Agent.zig`: Runs an interactive/task-driven agent in the browser process, issuing direct browser operations and supporting slash commands.
- **LLM Provider** — null repository path: External model endpoint used by agent mode; the README documents provider selection, OpenAI-compatible endpoints, gateways, and local-model alternatives.
- **PandaScript Runner** — `src/browser/Runner.zig`: Executes recorded deterministic JavaScript browser scripts for the `run` command.

**Browser runtime and web state**
- **Browser Runtime** — `src/browser/Browser.zig`: Top-level browser implementation that owns browser-wide runtime behavior.
- **Browsing Session Manager** — `src/browser/Session.zig`: Maintains session-level browsing context, including the isolation/sharing model described for MCP.
- **Page Lifecycle** — `src/browser/Page.zig`: Represents a page and its navigation-facing operations, including capture-oriented APIs referenced by the renderer.
- **Frame and Document Runtime** — `src/browser/Frame.zig`: Hosts frame-scoped document state and behavior needed for page loading and interaction.
- **Resource Loader** — `src/browser/frame/resource_load.zig`: Loads frame resources, a distinct stage from HTML parsing and script execution.
- **Network Cache** — `src/network/cache`: Provides network caching facilities indicated by the network subsystem layout.
- **Adblock Filtering** — `src/network/adblock`: Supplies request-filtering capability corresponding to the documented adblocker feature.
- **Persistent Storage** — `src/storage/sqlite`: SQLite-backed storage subsystem; the README documents browser cookies, while exact storage wiring was not sampled.

**Document construction, URL processing, and JavaScript**
- **Zig HTML Parser Adapter** — `src/browser/parser/html5ever.zig`: Browser-side adapter for the html5ever parser; the Rust prescanner explicitly identifies this as its synchronized counterpart.
- **HTML5 Tree Builder** — `src/rust/html5ever/lib.rs`: Exposes C-ABI document parsing, optional charset conversion, and html5ever tree construction to Zig.
- **DOM Mutation Callback Sink** — `src/rust/html5ever/sink.rs`: Implements html5ever’s tree-sink operations by invoking Zig-provided callbacks to create nodes, append text/nodes, reparent children, and attach declarative shadow roots.
- **Script Preload Scanner** — `src/rust/html5ever/prescan.rs`: Tokenizes buffered HTML without constructing a tree and reports eligible script/module URLs and the first base URL as prefetch hints.
- **URL and IDNA Bridge** — `src/rust/html5ever/url.rs`: Exposes URL parsing, joining, component access, and UTS#46 domain-to-ASCII conversion across the Zig/Rust boundary.
- **V8 Isolate Integration** — `src/browser/js/Isolate.zig`: Browser JavaScript-engine integration, consistent with the documented V8-based JavaScript support.
- **Script Manager** — `src/browser/ScriptManager.zig`: Manages page scripts as a separate lifecycle concern from parser and resource loading.
- **Browser Actions** — `src/browser/actions.zig`: Implements automation primitives such as interaction commands; README documents clicking and form input support.

**Content extraction and rendering**
- **Semantic Content Tree** — `src/SemanticTree.zig`: Represents semantic page content used for automation-oriented extraction/output.
- **Page Dump Exporter** — `src/browser/dump.zig`: Produces browser dump representations; README documents HTML and Markdown dumping.
- **Screenshot Exporter** — `src/browser/screenshot.zig`: Browser-side screenshot integration mirrored by the Rust rendering ABI.
- **Text Rasterizer** — `src/rust/render/lib.rs`: Lays out semantic text into styled blocks and rasterizes PNG output using bundled fonts, parley, skrifa, and tiny-skia; its source explicitly states it backs `Page.captureScreenshot` and `--dump png`.

3. **Relationships**
- **Automation Client -> CDP Server:** sends CDP/WebSocket automation requests; README’s Puppeteer example connects to the CDP endpoint.
- **Automation Client -> WebDriver BiDi Server:** sends WebDriver BiDi requests when that protocol is enabled; README documents the protocol option.
- **Automation Client -> MCP Server:** sends MCP JSON-RPC over stdio or HTTP; README specifies both transports and session headers.
- **CLI User -> Command Host:** invokes browser commands; README documents `fetch`, `serve`, `agent`, `run`, and `mcp`.
- **Command Host -> CDP Server:** starts the CDP serving mode; README documents `lightpanda serve`.
- **Command Host -> WebDriver BiDi Server:** starts BiDi as an alternative or co-enabled protocol; README documents repeated `--protocol` options.
- **Command Host -> Native Agent:** starts interactive or task-driven agent mode; README documents `lightpanda agent`.
- **Command Host -> PandaScript Runner:** dispatches recorded scripts for execution; README documents `lightpanda run`.
- **MCP Server -> Browsing Session Manager:** assigns, shares, lists, and closes browsing sessions; README explicitly defines this behavior.
- **CDP Server -> Browser Runtime:** exposes browser operations to automation clients; supported by the documented Puppeteer browser-context/page workflow.
- **WebDriver BiDi Server -> Browser Runtime:** exposes the same browser through its optional protocol; documented protocol role, with server wiring not sampled.
- **Native Agent -> Browser Runtime:** performs direct in-process browser tool calls; README explicitly states this.
- **Native Agent -> LLM Provider:** requests model assistance unless `--no-llm` is selected; README documents provider-backed and no-model modes.
- **PandaScript Runner -> Browser Runtime:** replays browser operations from saved JavaScript; README documents deterministic replay.
- **Browser Runtime -> Browsing Session Manager:** owns browsing-session behavior; supported by their runtime/session roles, though exact call sites were not sampled.
- **Browsing Session Manager -> Page Lifecycle:** manages pages within a browsing context; supported by documented context/new-page behavior.
- **Page Lifecycle -> Frame and Document Runtime:** hosts page document/frame behavior; supported by the page/frame subsystem organization.
- **Frame and Document Runtime -> Resource Loader:** requests document subresources; resource-loading module is frame-scoped by source organization.
- **Resource Loader -> Network Cache:** reads or writes cached network material; subsystem presence is established, but cache call sites were not sampled.
- **Resource Loader -> Adblock Filtering:** applies request filtering; README documents adblocking, but exact invocation was not sampled.
- **Zig HTML Parser Adapter -> HTML5 Tree Builder:** invokes the Rust html5ever integration; the prescanner source names the Zig adapter as its counterpart.
- **HTML5 Tree Builder -> DOM Mutation Callback Sink:** drives html5ever parsing through its supplied tree sink; Rust source constructs the sink and invokes document parsing.
- **DOM Mutation Callback Sink -> Zig HTML Parser Adapter:** invokes supplied node-creation and DOM-mutation callbacks; source shows the C callback ABI and callback calls.
- **Script Preload Scanner -> Zig HTML Parser Adapter:** reports script/base URL hints through a callback; source states the callback contract, while consuming call sites were not sampled.
- **URL and IDNA Bridge -> Resource Loader:** supplies URL parsing/normalization capabilities; source exposes this ABI, but direct loader calls were not sampled.
- **Script Manager -> V8 Isolate Integration:** executes managed page JavaScript through the browser’s V8 integration; component roles are clear, but direct call sites were not sampled.
- **Page Lifecycle -> Browser Actions:** performs interaction-oriented page operations; README documents click and form capabilities.
- **Page Dump Exporter -> Semantic Content Tree:** serializes semantic page content into output; roles are evident from the respective modules, but direct call sites were not sampled.
- **Screenshot Exporter -> Text Rasterizer:** requests text-only page rasterization; Rust source explicitly says it is mirrored by the screenshot exporter.
- **Text Rasterizer -> Automation Client:** returns screenshot content through page capture/protocol results; documented capture API role, with protocol serialization code not sampled.

4. **Coverage limits.** The sampled source is concentrated on Rust FFI parsing/rendering and optimization tools; Zig command dispatch, protocol handlers, network implementation, DOM ownership, storage use, and V8 call chains were not excerpted. Consequently, relationships marked as documented or role-based should not be read as verified function-level call paths, and provider-specific agent/authentication wiring cannot be established from the sample.

Main entry points: [`src/App.zig`](https://github.com/lightpanda-io/browser/blob/main/src/App.zig) (Command Host), [`src/browser/Browser.zig`](https://github.com/lightpanda-io/browser/blob/main/src/browser/Browser.zig) (Browser Runtime), [`src/browser/frame/resource_load.zig`](https://github.com/lightpanda-io/browser/blob/main/src/browser/frame/resource_load.zig) (Resource Loader), [`src/agent/Agent.zig`](https://github.com/lightpanda-io/browser/blob/main/src/agent/Agent.zig) (Native Agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["Interfaces"]
  node_automation_client(("Automation Client<br/>external actor"))
  node_cli_user(("CLI User<br/>external actor"))
  node_command_host["Command Host<br/>application entry point"]
  node_cdp_server["CDP Server<br/>protocol server"]
  node_bidi_server["WebDriver BiDi Server<br/>protocol server"]
  node_mcp_server["MCP Server<br/>protocol server"]
  node_native_agent["Native Agent<br/>agent runtime"]
  node_llm_provider(("LLM Provider<br/>external service"))
  node_panda_runner["PandaScript Runner<br/>[Runner.zig]"]
end

subgraph group_runtime["Browser Runtime"]
  node_browser_runtime["Browser Runtime<br/>[Browser.zig]"]
  node_session_manager["Browsing Session Manager<br/>[Session.zig]"]
  node_page_lifecycle["Page Lifecycle<br/>page runtime"]
  node_frame_runtime["Frame and Document Runtime<br/>[Frame.zig]"]
  node_resource_loader["Resource Loader<br/>[resource_load.zig]"]
  node_network_cache[("Network Cache")]
  node_adblock_filtering["Adblock Filtering<br/>request filter"]
end

subgraph group_document["Document and JavaScript"]
  node_html_adapter["Zig HTML Parser Adapter<br/>[html5ever.zig]"]
  node_html_tree_builder["HTML5 Tree Builder<br/>HTML parser"]
  node_dom_sink["DOM Mutation Callback Sink<br/>tree sink"]
  node_script_prescan["Script Preload Scanner<br/>HTML prescanner"]
  node_url_bridge["URL and IDNA Bridge<br/>URL processor"]
  node_v8_isolate["V8 Isolate Integration<br/>JavaScript engine"]
  node_script_manager["Script Manager<br/>[ScriptManager.zig]"]
  node_browser_actions["Browser Actions<br/>interaction service"]
end

subgraph group_output["Extraction and Rendering"]
  node_semantic_tree["Semantic Content Tree<br/>content model"]
  node_page_dump["Page Dump Exporter<br/>page exporter"]
  node_screenshot_exporter["Screenshot Exporter<br/>[screenshot.zig]"]
  node_text_rasterizer["Text Rasterizer<br/>renderer"]
end

node_automation_client -->|"sends CDP requests"| node_cdp_server
node_automation_client -.->|"sends BiDi requests"| node_bidi_server
node_automation_client -->|"sends MCP requests"| node_mcp_server
node_cli_user -->|"invokes commands"| node_command_host
node_command_host -->|"starts serving"| node_cdp_server
node_command_host -.->|"starts BiDi"| node_bidi_server
node_command_host -->|"starts agent"| node_native_agent
node_command_host -->|"dispatches scripts"| node_panda_runner
node_mcp_server -->|"manages sessions"| node_session_manager
node_cdp_server -->|"exposes operations"| node_browser_runtime
node_bidi_server -.->|"exposes operations"| node_browser_runtime
node_native_agent -->|"calls browser tools"| node_browser_runtime
node_native_agent -.->|"requests assistance"| node_llm_provider
node_panda_runner -->|"replays operations"| node_browser_runtime
node_browser_runtime -->|"owns sessions"| node_session_manager
node_session_manager -->|"manages pages"| node_page_lifecycle
node_page_lifecycle -->|"hosts document"| node_frame_runtime
node_frame_runtime -->|"requests resources"| node_resource_loader
node_resource_loader -->|"reads or writes"| node_network_cache
node_resource_loader -->|"applies filtering"| node_adblock_filtering
node_html_adapter -->|"invokes parser"| node_html_tree_builder
node_html_tree_builder -->|"drives tree sink"| node_dom_sink
node_dom_sink -->|"invokes callbacks"| node_html_adapter
node_script_prescan -->|"reports hints"| node_html_adapter
node_url_bridge -->|"normalizes URLs"| node_resource_loader
node_script_manager -->|"executes scripts"| node_v8_isolate
node_page_lifecycle -->|"performs actions"| node_browser_actions
node_page_dump -->|"serializes content"| node_semantic_tree
node_screenshot_exporter -->|"requests rasterization"| node_text_rasterizer
node_text_rasterizer -->|"returns screenshots"| node_automation_client

click node_command_host "https://github.com/lightpanda-io/browser/blob/main/src/App.zig"
click node_cdp_server "https://github.com/lightpanda-io/browser/tree/main/src/server/cdp"
click node_bidi_server "https://github.com/lightpanda-io/browser/tree/main/src/server/bidi"
click node_mcp_server "https://github.com/lightpanda-io/browser/tree/main/src/mcp"
click node_native_agent "https://github.com/lightpanda-io/browser/blob/main/src/agent/Agent.zig"
click node_panda_runner "https://github.com/lightpanda-io/browser/blob/main/src/browser/Runner.zig"
click node_browser_runtime "https://github.com/lightpanda-io/browser/blob/main/src/browser/Browser.zig"
click node_session_manager "https://github.com/lightpanda-io/browser/blob/main/src/browser/Session.zig"
click node_page_lifecycle "https://github.com/lightpanda-io/browser/blob/main/src/browser/Page.zig"
click node_frame_runtime "https://github.com/lightpanda-io/browser/blob/main/src/browser/Frame.zig"
click node_resource_loader "https://github.com/lightpanda-io/browser/blob/main/src/browser/frame/resource_load.zig"
click node_network_cache "https://github.com/lightpanda-io/browser/tree/main/src/network/cache"
click node_adblock_filtering "https://github.com/lightpanda-io/browser/tree/main/src/network/adblock"
click node_html_adapter "https://github.com/lightpanda-io/browser/blob/main/src/browser/parser/html5ever.zig"
click node_html_tree_builder "https://github.com/lightpanda-io/browser/blob/main/src/rust/html5ever/lib.rs"
click node_dom_sink "https://github.com/lightpanda-io/browser/blob/main/src/rust/html5ever/sink.rs"
click node_script_prescan "https://github.com/lightpanda-io/browser/blob/main/src/rust/html5ever/prescan.rs"
click node_url_bridge "https://github.com/lightpanda-io/browser/blob/main/src/rust/html5ever/url.rs"
click node_v8_isolate "https://github.com/lightpanda-io/browser/blob/main/src/browser/js/Isolate.zig"
click node_script_manager "https://github.com/lightpanda-io/browser/blob/main/src/browser/ScriptManager.zig"
click node_browser_actions "https://github.com/lightpanda-io/browser/blob/main/src/browser/actions.zig"
click node_semantic_tree "https://github.com/lightpanda-io/browser/blob/main/src/SemanticTree.zig"
click node_page_dump "https://github.com/lightpanda-io/browser/blob/main/src/browser/dump.zig"
click node_screenshot_exporter "https://github.com/lightpanda-io/browser/blob/main/src/browser/screenshot.zig"
click node_text_rasterizer "https://github.com/lightpanda-io/browser/blob/main/src/rust/render/lib.rs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_automation_client,node_cli_user,node_command_host,node_cdp_server,node_bidi_server,node_mcp_server,node_native_agent,node_llm_provider,node_panda_runner toneBlue
class node_browser_runtime,node_session_manager,node_page_lifecycle,node_frame_runtime,node_resource_loader,node_network_cache,node_adblock_filtering toneAmber
class node_html_adapter,node_html_tree_builder,node_dom_sink,node_script_prescan,node_url_bridge,node_v8_isolate,node_script_manager,node_browser_actions toneMint
class node_semantic_tree,node_page_dump,node_screenshot_exporter,node_text_rasterizer toneRose
```

## Components

### Interfaces

Command, protocol, and agent entry points

- **Automation Client**: external actor · External CDP, WebDriver BiDi, or MCP consumer
- **CLI User**: external actor · Operator invoking browser commands
- [Command Host](https://github.com/lightpanda-io/browser/blob/main/src/App.zig): application entry point · `src/App.zig`
- [CDP Server](https://github.com/lightpanda-io/browser/tree/main/src/server/cdp): protocol server · `src/server/cdp`
- [WebDriver BiDi Server](https://github.com/lightpanda-io/browser/tree/main/src/server/bidi): protocol server · Optional WebDriver BiDi protocol · `src/server/bidi`
- [MCP Server](https://github.com/lightpanda-io/browser/tree/main/src/mcp): protocol server · MCP JSON-RPC over stdio or HTTP · `src/mcp`
- [Native Agent](https://github.com/lightpanda-io/browser/blob/main/src/agent/Agent.zig): agent runtime · `src/agent/Agent.zig`
- **LLM Provider**: external service · External model endpoint
- [PandaScript Runner](https://github.com/lightpanda-io/browser/blob/main/src/browser/Runner.zig): script runner · `src/browser/Runner.zig`

### Browser Runtime

Browsing sessions, pages, frames, and network resources

- [Browser Runtime](https://github.com/lightpanda-io/browser/blob/main/src/browser/Browser.zig): browser runtime · `src/browser/Browser.zig`
- [Browsing Session Manager](https://github.com/lightpanda-io/browser/blob/main/src/browser/Session.zig): session manager · `src/browser/Session.zig`
- [Page Lifecycle](https://github.com/lightpanda-io/browser/blob/main/src/browser/Page.zig): page runtime · `src/browser/Page.zig`
- [Frame and Document Runtime](https://github.com/lightpanda-io/browser/blob/main/src/browser/Frame.zig): document runtime · `src/browser/Frame.zig`
- [Resource Loader](https://github.com/lightpanda-io/browser/blob/main/src/browser/frame/resource_load.zig): resource loader · `src/browser/frame/resource_load.zig`
- [Network Cache](https://github.com/lightpanda-io/browser/tree/main/src/network/cache): cache · `src/network/cache`
- [Adblock Filtering](https://github.com/lightpanda-io/browser/tree/main/src/network/adblock): request filter · `src/network/adblock`

### Document and JavaScript

HTML parsing, URL processing, and script execution

- [Zig HTML Parser Adapter](https://github.com/lightpanda-io/browser/blob/main/src/browser/parser/html5ever.zig): parser adapter · `src/browser/parser/html5ever.zig`
- [HTML5 Tree Builder](https://github.com/lightpanda-io/browser/blob/main/src/rust/html5ever/lib.rs): HTML parser · `src/rust/html5ever/lib.rs`
- [DOM Mutation Callback Sink](https://github.com/lightpanda-io/browser/blob/main/src/rust/html5ever/sink.rs): tree sink · `src/rust/html5ever/sink.rs`
- [Script Preload Scanner](https://github.com/lightpanda-io/browser/blob/main/src/rust/html5ever/prescan.rs): HTML prescanner · `src/rust/html5ever/prescan.rs`
- [URL and IDNA Bridge](https://github.com/lightpanda-io/browser/blob/main/src/rust/html5ever/url.rs): URL processor · `src/rust/html5ever/url.rs`
- [V8 Isolate Integration](https://github.com/lightpanda-io/browser/blob/main/src/browser/js/Isolate.zig): JavaScript engine · `src/browser/js/Isolate.zig`
- [Script Manager](https://github.com/lightpanda-io/browser/blob/main/src/browser/ScriptManager.zig): script manager · `src/browser/ScriptManager.zig`
- [Browser Actions](https://github.com/lightpanda-io/browser/blob/main/src/browser/actions.zig): interaction service · `src/browser/actions.zig`

### Extraction and Rendering

Semantic extraction, dumps, and screenshots

- [Semantic Content Tree](https://github.com/lightpanda-io/browser/blob/main/src/SemanticTree.zig): content model · `src/SemanticTree.zig`
- [Page Dump Exporter](https://github.com/lightpanda-io/browser/blob/main/src/browser/dump.zig): page exporter · `src/browser/dump.zig`
- [Screenshot Exporter](https://github.com/lightpanda-io/browser/blob/main/src/browser/screenshot.zig): screenshot exporter · `src/browser/screenshot.zig`
- [Text Rasterizer](https://github.com/lightpanda-io/browser/blob/main/src/rust/render/lib.rs): renderer · `src/rust/render/lib.rs`

## Connections

- Automation Client → CDP Server: sends CDP requests · CDP/WebSocket automation requests
- Automation Client → WebDriver BiDi Server: sends BiDi requests · Used when WebDriver BiDi is enabled
- Automation Client → MCP Server: sends MCP requests · MCP JSON-RPC over stdio or HTTP
- CLI User → Command Host: invokes commands · fetch, serve, agent, run, and mcp
- Command Host → CDP Server: starts serving
- Command Host → WebDriver BiDi Server: starts BiDi · Alternative or co-enabled protocol
- Command Host → Native Agent: starts agent
- Command Host → PandaScript Runner: dispatches scripts
- MCP Server → Browsing Session Manager: manages sessions · Assigns, shares, lists, and closes sessions
- CDP Server → Browser Runtime: exposes operations
- WebDriver BiDi Server → Browser Runtime: exposes operations · Optional protocol
- Native Agent → Browser Runtime: calls browser tools · Direct in-process browser operations
- Native Agent → LLM Provider: requests assistance · Optional unless no-LLM mode is selected
- PandaScript Runner → Browser Runtime: replays operations · Deterministic saved JavaScript replay
- Browser Runtime → Browsing Session Manager: owns sessions
- Browsing Session Manager → Page Lifecycle: manages pages
- Page Lifecycle → Frame and Document Runtime: hosts document
- Frame and Document Runtime → Resource Loader: requests resources · Frame document subresources
- Resource Loader → Network Cache: reads or writes
- Resource Loader → Adblock Filtering: applies filtering
- Zig HTML Parser Adapter → HTML5 Tree Builder: invokes parser · Rust html5ever integration
- HTML5 Tree Builder → DOM Mutation Callback Sink: drives tree sink
- DOM Mutation Callback Sink → Zig HTML Parser Adapter: invokes callbacks · Node creation and DOM mutation callbacks
- Script Preload Scanner → Zig HTML Parser Adapter: reports hints · Script and base URL callbacks
- URL and IDNA Bridge → Resource Loader: normalizes URLs · URL parsing and IDNA capabilities
- Script Manager → V8 Isolate Integration: executes scripts
- Page Lifecycle → Browser Actions: performs actions · Clicking and form input
- Page Dump Exporter → Semantic Content Tree: serializes content
- Screenshot Exporter → Text Rasterizer: requests rasterization · Text-only page rasterization
- Text Rasterizer → Automation Client: returns screenshots · Capture content through protocol results
