bw run. You can call these from any AI agent, automation script, or HTTP client.
Working with the local API
List discovered sites
Start by confirming which sites are available:Get the full manifest
Fetch the manifest to see all states, views, and actions:Call operations
URL pattern
All endpoints follow this pattern:- slug — site identifier (e.g.,
example-com) - state — page state name from the manifest (e.g.,
HomePage,LoginPage) - viewName / actionName — the specific view or action within that state
Feeding to an LLM agent
A practical approach for tool-using LLMs:- Fetch the manifest:
GET /api/sites/{slug}/manifest - Extract the list of states, views, and actions into a tool schema
- Let the LLM decide which endpoints to call based on the user’s request
- Execute the chosen endpoint and return the result
Response format
All endpoints return JSON with anok field:
Success (view):
CORS
The local server includes permissive CORS headers:The server listens on
127.0.0.1 by default (local only). The bw run command does not currently support a --host flag — it always binds to localhost.