@@ -84,12 +84,17 @@ def web_crawl_md(params)
8484 )
8585 end
8686
87+ # Some parameter documentations has been truncated, see
88+ # {ContextDev::Models::WebWebScrapeHTMLParams} for more details.
89+ #
8790 # Scrapes the given URL and returns the raw HTML content of the page.
8891 #
89- # @overload web_scrape_html(url:, request_options: {})
92+ # @overload web_scrape_html(url:, max_age_ms: nil, request_options: {})
9093 #
9194 # @param url [String] Full URL to scrape (must include http:// or https:// protocol)
9295 #
96+ # @param max_age_ms [Integer] Return a cached result if a prior scrape for the same parameters exists and is y
97+ #
9398 # @param request_options [ContextDev::RequestOptions, Hash{Symbol=>Object}, nil]
9499 #
95100 # @return [ContextDev::Models::WebWebScrapeHTMLResponse]
@@ -101,7 +106,7 @@ def web_scrape_html(params)
101106 @client . request (
102107 method : :get ,
103108 path : "web/scrape/html" ,
104- query : query ,
109+ query : query . transform_keys ( max_age_ms : "maxAgeMs" ) ,
105110 model : ContextDev ::Models ::WebWebScrapeHTMLResponse ,
106111 options : options
107112 )
@@ -138,14 +143,16 @@ def web_scrape_images(params)
138143 # Scrapes the given URL, converts the HTML content to Markdown, and returns the
139144 # result.
140145 #
141- # @overload web_scrape_md(url:, include_images: nil, include_links: nil, shorten_base64_images: nil, use_main_content_only: nil, request_options: {})
146+ # @overload web_scrape_md(url:, include_images: nil, include_links: nil, max_age_ms: nil, shorten_base64_images: nil, use_main_content_only: nil, request_options: {})
142147 #
143148 # @param url [String] Full URL to scrape and convert to markdown (must include http:// or https:// pro
144149 #
145150 # @param include_images [Boolean] Include image references in Markdown output
146151 #
147152 # @param include_links [Boolean] Preserve hyperlinks in Markdown output
148153 #
154+ # @param max_age_ms [Integer] Return a cached result if a prior scrape for the same parameters exists and is y
155+ #
149156 # @param shorten_base64_images [Boolean] Shorten base64-encoded image data in the Markdown output
150157 #
151158 # @param use_main_content_only [Boolean] Extract only the main content of the page, excluding headers, footers, sidebars,
@@ -164,6 +171,7 @@ def web_scrape_md(params)
164171 query : query . transform_keys (
165172 include_images : "includeImages" ,
166173 include_links : "includeLinks" ,
174+ max_age_ms : "maxAgeMs" ,
167175 shorten_base64_images : "shortenBase64Images" ,
168176 use_main_content_only : "useMainContentOnly"
169177 ) ,
0 commit comments