@@ -50,6 +50,7 @@ def create(
5050 * ,
5151 account_id : str ,
5252 cache_ttl : float | NotGiven = NOT_GIVEN ,
53+ action_timeout : float | NotGiven = NOT_GIVEN ,
5354 add_script_tag : Iterable [markdown_create_params .AddScriptTag ] | NotGiven = NOT_GIVEN ,
5455 add_style_tag : Iterable [markdown_create_params .AddStyleTag ] | NotGiven = NOT_GIVEN ,
5556 allow_request_pattern : List [str ] | NotGiven = NOT_GIVEN ,
@@ -130,6 +131,10 @@ def create(
130131
131132 cache_ttl: Cache TTL default is 5s. Set to 0 to disable.
132133
134+ action_timeout: The maximum duration allowed for the browser action to complete after the page
135+ has loaded (such as taking screenshots, extracting content, or generating PDFs).
136+ If this time limit is exceeded, the action stops and returns a timeout error.
137+
133138 add_script_tag: Adds a `<script>` tag into the page with the desired URL or content.
134139
135140 add_style_tag: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a
@@ -180,6 +185,7 @@ def create(
180185 f"/accounts/{ account_id } /browser-rendering/markdown" ,
181186 body = maybe_transform (
182187 {
188+ "action_timeout" : action_timeout ,
183189 "add_script_tag" : add_script_tag ,
184190 "add_style_tag" : add_style_tag ,
185191 "allow_request_pattern" : allow_request_pattern ,
@@ -239,6 +245,7 @@ async def create(
239245 * ,
240246 account_id : str ,
241247 cache_ttl : float | NotGiven = NOT_GIVEN ,
248+ action_timeout : float | NotGiven = NOT_GIVEN ,
242249 add_script_tag : Iterable [markdown_create_params .AddScriptTag ] | NotGiven = NOT_GIVEN ,
243250 add_style_tag : Iterable [markdown_create_params .AddStyleTag ] | NotGiven = NOT_GIVEN ,
244251 allow_request_pattern : List [str ] | NotGiven = NOT_GIVEN ,
@@ -319,6 +326,10 @@ async def create(
319326
320327 cache_ttl: Cache TTL default is 5s. Set to 0 to disable.
321328
329+ action_timeout: The maximum duration allowed for the browser action to complete after the page
330+ has loaded (such as taking screenshots, extracting content, or generating PDFs).
331+ If this time limit is exceeded, the action stops and returns a timeout error.
332+
322333 add_script_tag: Adds a `<script>` tag into the page with the desired URL or content.
323334
324335 add_style_tag: Adds a `<link rel="stylesheet">` tag into the page with the desired URL or a
@@ -369,6 +380,7 @@ async def create(
369380 f"/accounts/{ account_id } /browser-rendering/markdown" ,
370381 body = await async_maybe_transform (
371382 {
383+ "action_timeout" : action_timeout ,
372384 "add_script_tag" : add_script_tag ,
373385 "add_style_tag" : add_style_tag ,
374386 "allow_request_pattern" : allow_request_pattern ,
0 commit comments