@@ -328,6 +328,9 @@ type BrowserNewResponse struct {
328328 Profile Profile `json:"profile"`
329329 // ID of the proxy associated with this browser session, if any.
330330 ProxyID string `json:"proxy_id"`
331+ // URL the session was asked to navigate to on creation, if any. Recorded for
332+ // debugging — navigation is best-effort and may have failed.
333+ StartURL string `json:"start_url"`
331334 // Session usage metrics.
332335 Usage BrowserUsage `json:"usage"`
333336 // Initial browser window size in pixels with optional refresh rate. If omitted,
@@ -361,6 +364,7 @@ type BrowserNewResponse struct {
361364 Pool respjson.Field
362365 Profile respjson.Field
363366 ProxyID respjson.Field
367+ StartURL respjson.Field
364368 Usage respjson.Field
365369 Viewport respjson.Field
366370 ExtraFields map [string ]respjson.Field
@@ -411,6 +415,9 @@ type BrowserGetResponse struct {
411415 Profile Profile `json:"profile"`
412416 // ID of the proxy associated with this browser session, if any.
413417 ProxyID string `json:"proxy_id"`
418+ // URL the session was asked to navigate to on creation, if any. Recorded for
419+ // debugging — navigation is best-effort and may have failed.
420+ StartURL string `json:"start_url"`
414421 // Session usage metrics.
415422 Usage BrowserUsage `json:"usage"`
416423 // Initial browser window size in pixels with optional refresh rate. If omitted,
@@ -444,6 +451,7 @@ type BrowserGetResponse struct {
444451 Pool respjson.Field
445452 Profile respjson.Field
446453 ProxyID respjson.Field
454+ StartURL respjson.Field
447455 Usage respjson.Field
448456 Viewport respjson.Field
449457 ExtraFields map [string ]respjson.Field
@@ -494,6 +502,9 @@ type BrowserUpdateResponse struct {
494502 Profile Profile `json:"profile"`
495503 // ID of the proxy associated with this browser session, if any.
496504 ProxyID string `json:"proxy_id"`
505+ // URL the session was asked to navigate to on creation, if any. Recorded for
506+ // debugging — navigation is best-effort and may have failed.
507+ StartURL string `json:"start_url"`
497508 // Session usage metrics.
498509 Usage BrowserUsage `json:"usage"`
499510 // Initial browser window size in pixels with optional refresh rate. If omitted,
@@ -527,6 +538,7 @@ type BrowserUpdateResponse struct {
527538 Pool respjson.Field
528539 Profile respjson.Field
529540 ProxyID respjson.Field
541+ StartURL respjson.Field
530542 Usage respjson.Field
531543 Viewport respjson.Field
532544 ExtraFields map [string ]respjson.Field
@@ -577,6 +589,9 @@ type BrowserListResponse struct {
577589 Profile Profile `json:"profile"`
578590 // ID of the proxy associated with this browser session, if any.
579591 ProxyID string `json:"proxy_id"`
592+ // URL the session was asked to navigate to on creation, if any. Recorded for
593+ // debugging — navigation is best-effort and may have failed.
594+ StartURL string `json:"start_url"`
580595 // Session usage metrics.
581596 Usage BrowserUsage `json:"usage"`
582597 // Initial browser window size in pixels with optional refresh rate. If omitted,
@@ -610,6 +625,7 @@ type BrowserListResponse struct {
610625 Pool respjson.Field
611626 Profile respjson.Field
612627 ProxyID respjson.Field
628+ StartURL respjson.Field
613629 Usage respjson.Field
614630 Viewport respjson.Field
615631 ExtraFields map [string ]respjson.Field
@@ -665,6 +681,12 @@ type BrowserNewParams struct {
665681 // Optional proxy to associate to the browser session. Must reference a proxy
666682 // belonging to the caller's org.
667683 ProxyID param.Opt [string ] `json:"proxy_id,omitzero"`
684+ // Optional URL to navigate to immediately after the browser is created.
685+ // Best-effort: failures to navigate do not fail browser creation. Any pre-existing
686+ // tabs are reduced to a single tab which is then navigated. Accepts any URL
687+ // Chromium can resolve, including chrome:// pages. Ignored when reusing an
688+ // existing persistent session.
689+ StartURL param.Opt [string ] `json:"start_url,omitzero"`
668690 // If true, launches the browser in stealth mode to reduce detection by anti-bot
669691 // mechanisms.
670692 Stealth param.Opt [bool ] `json:"stealth,omitzero"`
0 commit comments