execute_playwright_code enables a compact observation by default. In SDK browser code, pass capture options when your app needs post-step evidence.
What an observation is
An observation is not a full page archive. It is a bounded snapshot of useful page state, such as:- Page URL and title.
- Accessibility or text evidence.
- Truncation metadata.
- Compact runtime status.
- Blocker or CAPTCHA context when detected.
- Links to artifacts or activity captured during the step.
MCP default
The MCP runtime surface returns observations fromexecute_playwright_code so the host can write the next browser-code snippet.
SDK capture
Use capture options when deterministic code needs evidence after execution.How to use observations
Use observations to answer narrow next-step questions:- Did navigation land on the expected page?
- Is the expected heading, link, form, or blocker visible?
- Did the page ask for confirmation or credentials?
- Should the next step continue, retry, ask for approval, or stop?
When to use richer evidence
Reference: browser control, SDK browser reference, and MCP tool reference.