browser_bridge_request
Send HTTP requests through a running authenticated browser-bridge tab and return the response status, headers, and body as YAML.
Instructions
Send one HTTP request through a running, authenticated browser-bridge tab and return the buffered response envelope (status, headers, body) as YAML. Mirrors omni-dev browser bridge request. Requires a running bridge (omni-dev browser bridge serve or the daemon's bridge service) and a session token from OMNI_BRIDGE_TOKEN or token_file. NOT read-only — the request runs with the tab's session, so a non-GET method can mutate remote state. url is relative to the tab's page origin unless allow_origin permits a cross-origin target. Streaming responses are not supported here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Request URL, relative to the browser's page origin (e.g. `/api/foo`). | |
| body | No | Request body, sent verbatim (no `@file` expansion — pass content inline). | |
| method | No | HTTP method. Defaults to `GET`. | GET |
| target | No | Route to a specific connected tab: a connection id (from `/__bridge/status`) or an `Origin` that uniquely matches one tab. Required when more than one tab is connected. | |
| headers | No | Request headers as a `{ "Name": "Value" }` map. Validated for safety. | |
| token_file | No | Read the session token from this `0600` file instead of the `OMNI_BRIDGE_TOKEN` environment variable. | |
| credentials | No | Fetch credentials mode. Defaults to `include` (cookies/auth sent). Use `omit` to read a wildcard-CORS cross-origin response. | |
| allow_origin | No | Permit a cross-origin outbound URL for this request only. Omit for same-origin (relative) requests. | |
| control_port | No | Control-plane port of the running bridge. Defaults to the standard port. |