@@ -2022,6 +2022,7 @@ def web_scrape_md(
20222022 exclude_selectors : Optional [SequenceNotStr [str ]] | Omit = omit ,
20232023 headers : Dict [str , str ] | Omit = omit ,
20242024 include_frames : Union [bool , Literal ["true" , "false" ]] | Omit = omit ,
2025+ include_html : Union [bool , Literal ["true" , "false" ]] | Omit = omit ,
20252026 include_images : Union [bool , Literal ["true" , "false" ]] | Omit = omit ,
20262027 include_links : Union [bool , Literal ["true" , "false" ]] | Omit = omit ,
20272028 include_selectors : Optional [SequenceNotStr [str ]] | Omit = omit ,
@@ -2094,6 +2095,10 @@ def web_scrape_md(
20942095
20952096 include_frames: When true, the contents of iframes are rendered to Markdown.
20962097
2098+ include_html: When true, the response also includes an `html` field with the page HTML the
2099+ Markdown was converted from — the same body the Scrape HTML endpoint returns for
2100+ the equivalent request.
2101+
20972102 include_images: Include image references in Markdown output
20982103
20992104 include_links: Preserve hyperlinks in Markdown output
@@ -2157,6 +2162,7 @@ def web_scrape_md(
21572162 "exclude_selectors" : exclude_selectors ,
21582163 "headers" : headers ,
21592164 "include_frames" : include_frames ,
2165+ "include_html" : include_html ,
21602166 "include_images" : include_images ,
21612167 "include_links" : include_links ,
21622168 "include_selectors" : include_selectors ,
@@ -4246,6 +4252,7 @@ async def web_scrape_md(
42464252 exclude_selectors : Optional [SequenceNotStr [str ]] | Omit = omit ,
42474253 headers : Dict [str , str ] | Omit = omit ,
42484254 include_frames : Union [bool , Literal ["true" , "false" ]] | Omit = omit ,
4255+ include_html : Union [bool , Literal ["true" , "false" ]] | Omit = omit ,
42494256 include_images : Union [bool , Literal ["true" , "false" ]] | Omit = omit ,
42504257 include_links : Union [bool , Literal ["true" , "false" ]] | Omit = omit ,
42514258 include_selectors : Optional [SequenceNotStr [str ]] | Omit = omit ,
@@ -4318,6 +4325,10 @@ async def web_scrape_md(
43184325
43194326 include_frames: When true, the contents of iframes are rendered to Markdown.
43204327
4328+ include_html: When true, the response also includes an `html` field with the page HTML the
4329+ Markdown was converted from — the same body the Scrape HTML endpoint returns for
4330+ the equivalent request.
4331+
43214332 include_images: Include image references in Markdown output
43224333
43234334 include_links: Preserve hyperlinks in Markdown output
@@ -4381,6 +4392,7 @@ async def web_scrape_md(
43814392 "exclude_selectors" : exclude_selectors ,
43824393 "headers" : headers ,
43834394 "include_frames" : include_frames ,
4395+ "include_html" : include_html ,
43844396 "include_images" : include_images ,
43854397 "include_links" : include_links ,
43864398 "include_selectors" : include_selectors ,
0 commit comments