@@ -47,6 +47,7 @@ def with_streaming_response(self) -> BrowsersResourceWithStreamingResponse:
4747 def create (
4848 self ,
4949 * ,
50+ headless : bool | NotGiven = NOT_GIVEN ,
5051 invocation_id : str | NotGiven = NOT_GIVEN ,
5152 persistence : BrowserPersistenceParam | NotGiven = NOT_GIVEN ,
5253 stealth : bool | NotGiven = NOT_GIVEN ,
@@ -61,6 +62,9 @@ def create(
6162 Create a new browser session from within an action.
6263
6364 Args:
65+ headless: If true, launches the browser using a headless image (no VNC/GUI). Defaults to
66+ false.
67+
6468 invocation_id: action invocation ID
6569
6670 persistence: Optional persistence configuration for the browser session.
@@ -80,6 +84,7 @@ def create(
8084 "/browsers" ,
8185 body = maybe_transform (
8286 {
87+ "headless" : headless ,
8388 "invocation_id" : invocation_id ,
8489 "persistence" : persistence ,
8590 "stealth" : stealth ,
@@ -240,6 +245,7 @@ def with_streaming_response(self) -> AsyncBrowsersResourceWithStreamingResponse:
240245 async def create (
241246 self ,
242247 * ,
248+ headless : bool | NotGiven = NOT_GIVEN ,
243249 invocation_id : str | NotGiven = NOT_GIVEN ,
244250 persistence : BrowserPersistenceParam | NotGiven = NOT_GIVEN ,
245251 stealth : bool | NotGiven = NOT_GIVEN ,
@@ -254,6 +260,9 @@ async def create(
254260 Create a new browser session from within an action.
255261
256262 Args:
263+ headless: If true, launches the browser using a headless image (no VNC/GUI). Defaults to
264+ false.
265+
257266 invocation_id: action invocation ID
258267
259268 persistence: Optional persistence configuration for the browser session.
@@ -273,6 +282,7 @@ async def create(
273282 "/browsers" ,
274283 body = await async_maybe_transform (
275284 {
285+ "headless" : headless ,
276286 "invocation_id" : invocation_id ,
277287 "persistence" : persistence ,
278288 "stealth" : stealth ,
0 commit comments