June 3, 2026

Extract with vision in Stagehand 3.5

Stagehand 3.5.0 is live.

Pass screenshot: true to extract() to send the viewport screenshot alongside the accessibility tree, so the model can read charts, layouts, and visual-only content the a11y tree misses.

const data = await page.extract({
  instruction: "extract the pricing tiers and prices",
  schema,
  screenshot: true,
});

Plus:

  • Native clipboard API for copy/paste flows.
  • Claude Opus 4.8 is now supported for Computer Use (CUA).
  • Google Vertex AI auth parameters across the SDK and API schemas.
  • Use ignoreDefaultArgs to drop chrome-launcher's built-in flags (e.g. --disable-extensions) when running locally.
  • Snapshots now include [selected] / [checked] state for more reliable form handling.
  • Constructor and per-request model config now forwards to API-backed sessions.

Fixes:

  • Anthropic CUA triple_click action mapping.
  • structuredOutputMode for newer Anthropic models.
  • Local viewport settings are now respected when attaching over CDP.