Browser (CDP) connect URL
spicrawl_browser_connect_urlMints a single-use connect URL for Spicrawl's remote browser (GET /v1/browser, a DevTools Protocol (CDP) WebSocket) so YOUR code can drive it with any CDP client, using the URL as the browser WebSocket endpoint. It calls POST /v1/browser/token and returns a ws:// or wss:// URL carrying a short-lived token, never the API key: the URL works ONCE, within 60 seconds, and only with the options given here (editing them in the URL is refused), so call this right before connecting and again for every new session. Prefer sending the key as an Authorization header when the client supports headers on the WebSocket upgrade: then connect to the plain /v1/browser URL with 'Authorization: Bearer ' and no token is needed. The key must carry the browser scope. Parameter errors are reported when minting. The result's session_id names the session once connected: when a page needs a person (a login, a one-time code, a captcha), pass it to spicrawl_browser_live_view for a link they can open, and to spicrawl_browser_control to see when they hand control back.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "spicrawl_browser_connect_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proxy | No | Your own proxy, as http://user:pass@host:port. Replaces our pool, so proxy_country, proxy_region and sticky_key cannot be combined with it. Kept out of the returned URL. | |
| engine | No | Rendering tier of the remote browser: `browser` (full browser, full protocol; the default) or `js` (lighter JavaScript rendering with a smaller protocol surface). A tier your plan does not include is refused. | |
| sticky_key | No | Keep one exit IP for the session under this key (2-64 letters, digits, hyphens). Omit to rotate (the default). | |
| session_ttl | No | Session lifetime in seconds, 60-900. Default 180. | |
| proxy_region | No | Broader exit region/pool name; 'global' means no constraint. Mutually exclusive with proxy_country. | |
| proxy_country | No | Exit country, ISO-3166 alpha-2 lowercase (e.g. 'de'). Mutually exclusive with proxy_region. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ws:// or wss:// connect URL carrying a single-use token (never the API key); use it as the CDP browser WebSocket endpoint. | |
| notes | No | Usage notes for the connect URL. | |
| expires_at | No | When the token expires, RFC 3339 UTC (60 s after minting). | |
| session_id | No | Names the session once connected; for spicrawl_browser_live_view and spicrawl_browser_control. | |
| single_use | Yes | Always true: the URL works for one connection. |