Skip to main content
Text is useful for people. Structured output is better when code needs to store, compare, or route the result.

CLI schema

Create a JSON schema file:
Run the agent with the schema:

SDK schema

Handle invalid output

Check result.status, result.output, and result.schema before persisting data.
Schema validation improves the boundary between browser evidence and product data. It does not replace source review for high-impact decisions.