@@ -97,11 +97,6 @@ export interface BrowserPersistence {
9797}
9898
9999export interface BrowserCreateResponse {
100- /**
101- * Remote URL for live viewing the browser session
102- */
103- browser_live_view_url : string ;
104-
105100 /**
106101 * Websocket URL for Chrome DevTools Protocol connections to the browser session
107102 */
@@ -112,18 +107,19 @@ export interface BrowserCreateResponse {
112107 */
113108 session_id : string ;
114109
110+ /**
111+ * Remote URL for live viewing the browser session. Only available for non-headless
112+ * browsers.
113+ */
114+ browser_live_view_url ?: string ;
115+
115116 /**
116117 * Optional persistence configuration for the browser session.
117118 */
118119 persistence ?: BrowserPersistence ;
119120}
120121
121122export interface BrowserRetrieveResponse {
122- /**
123- * Remote URL for live viewing the browser session
124- */
125- browser_live_view_url : string ;
126-
127123 /**
128124 * Websocket URL for Chrome DevTools Protocol connections to the browser session
129125 */
@@ -134,6 +130,12 @@ export interface BrowserRetrieveResponse {
134130 */
135131 session_id : string ;
136132
133+ /**
134+ * Remote URL for live viewing the browser session. Only available for non-headless
135+ * browsers.
136+ */
137+ browser_live_view_url ?: string ;
138+
137139 /**
138140 * Optional persistence configuration for the browser session.
139141 */
@@ -144,11 +146,6 @@ export type BrowserListResponse = Array<BrowserListResponse.BrowserListResponseI
144146
145147export namespace BrowserListResponse {
146148 export interface BrowserListResponseItem {
147- /**
148- * Remote URL for live viewing the browser session
149- */
150- browser_live_view_url : string ;
151-
152149 /**
153150 * Websocket URL for Chrome DevTools Protocol connections to the browser session
154151 */
@@ -159,6 +156,12 @@ export namespace BrowserListResponse {
159156 */
160157 session_id : string ;
161158
159+ /**
160+ * Remote URL for live viewing the browser session. Only available for non-headless
161+ * browsers.
162+ */
163+ browser_live_view_url ?: string ;
164+
162165 /**
163166 * Optional persistence configuration for the browser session.
164167 */
@@ -167,6 +170,12 @@ export namespace BrowserListResponse {
167170}
168171
169172export interface BrowserCreateParams {
173+ /**
174+ * If true, launches the browser using a headless image (no VNC/GUI). Defaults to
175+ * false.
176+ */
177+ headless ?: boolean ;
178+
170179 /**
171180 * action invocation ID
172181 */
0 commit comments