The OpenAPI spec endpoint
Working with the API
List discovered sites
Start by confirming which sites are available:Get the OpenAPI spec
Fetch the spec for your agent. Theslug comes from the list above:
Call an operation
The three operation types
BrowserWire organizes discovered operations into three categories:| Type | Method | What it does |
|---|---|---|
| Views | GET | Navigates to a page or component and reads structured data from it |
| Actions | POST | Performs a single UI operation — clicking a button, selecting from a dropdown, etc. |
| Workflows | POST | Executes a multi-step sequence of actions in order — the way users complete a full task like logging in or submitting a form |
Testing operations interactively
Before connecting an agent, you can test every discovered operation in the browser using the Swagger UI:example-com with your site’s slug. The Swagger UI lists all views, actions, and workflows with their input schemas, and lets you execute them directly.
CORS
All API endpoints include permissive CORS headers by default:The BrowserWire server listens on
127.0.0.1 by default, so it’s only reachable from the local machine. If you need to access it from another host (e.g., a remote agent), start the server with browserwire --host 0.0.0.0 and ensure the port is accessible.