| Resource | Use it for | Common surface |
|---|---|---|
| Pages | Inspect active and open browser pages. | SDK, CLI, REST |
| Files | Stage browser-readable files or retrieve generated files. | SDK, REST |
| Downloads | Capture files produced by a site. | SDK, CLI, REST |
| Dialogs | Accept or dismiss JavaScript dialogs. | SDK, CLI, REST |
| Permissions | Grant, deny, clear, or reset browser permissions. | SDK, REST |
| Recordings | Replay a browser run after it finishes. | SDK, CLI, REST |
| Events | Follow runtime activity over time. | SDK, REST |
result.artifacts, result.steps, status, and browser IDs. Use direct resource APIs when your application needs lower-level control.
Common recipes
Upload a file
files.path(fileId) to resolve a staged file to a runtime-local path. Prefer staged files over embedding large data directly into prompts.
Save a download
maxBytes and overwrite in production:
Handle a dialog
Grant and clear permissions
Inspect events
Download recording evidence
recording: true when the browser is created.