@@ -52,6 +52,11 @@ const calculate_cdp_endpoint = async country=>{
5252let scraping_browser_navigate = {
5353 name : 'scraping_browser_navigate' ,
5454 description : 'Navigate a scraping browser session to a new URL' ,
55+ annotations : {
56+ title : 'Browser Navigate' ,
57+ destructiveHint : true ,
58+ openWorldHint : true ,
59+ } ,
5560 parameters : z . object ( {
5661 url : z . string ( ) . describe ( 'The URL to navigate to' ) ,
5762 country : z . string ( ) . regex ( / ^ [ A - Z a - z ] { 2 } $ / )
@@ -83,6 +88,10 @@ let scraping_browser_navigate = {
8388let scraping_browser_go_back = {
8489 name : 'scraping_browser_go_back' ,
8590 description : 'Go back to the previous page' ,
91+ annotations : {
92+ title : 'Browser Go Back' ,
93+ destructiveHint : true ,
94+ } ,
8695 parameters : z . object ( { } ) ,
8796 execute : async ( ) => {
8897 const page = await ( await require_browser ( ) ) . get_page ( ) ;
@@ -102,6 +111,10 @@ let scraping_browser_go_back = {
102111const scraping_browser_go_forward = {
103112 name : 'scraping_browser_go_forward' ,
104113 description : 'Go forward to the next page' ,
114+ annotations : {
115+ title : 'Browser Go Forward' ,
116+ destructiveHint : true ,
117+ } ,
105118 parameters : z . object ( { } ) ,
106119 execute : async ( ) => {
107120 const page = await ( await require_browser ( ) ) . get_page ( ) ;
@@ -128,6 +141,10 @@ let scraping_browser_snapshot = {
128141 'Use this before interacting with elements to get proper refs instead '
129142 + 'of guessing selectors.'
130143 ] . join ( '\n' ) ,
144+ annotations : {
145+ title : 'Browser Snapshot' ,
146+ readOnlyHint : true ,
147+ } ,
131148 parameters : z . object ( {
132149 filtered : z . boolean ( ) . optional ( ) . describe (
133150 'Whether to apply filtering/compaction (default: false). '
@@ -166,6 +183,10 @@ let scraping_browser_click_ref = {
166183 'Use scraping_browser_snapshot first to get the correct ref values.' ,
167184 'This is more reliable than CSS selectors.'
168185 ] . join ( '\n' ) ,
186+ annotations : {
187+ title : 'Browser Click Element' ,
188+ destructiveHint : true ,
189+ } ,
169190 parameters : z . object ( {
170191 ref : z . string ( ) . describe ( 'The ref attribute from the ARIA snapshot (e.g., "23")' ) ,
171192 element : z . string ( ) . describe ( 'Description of the element being clicked for context' ) ,
@@ -189,6 +210,10 @@ let scraping_browser_type_ref = {
189210 'Use scraping_browser_snapshot first to get the correct ref values.' ,
190211 'This is more reliable than CSS selectors.'
191212 ] . join ( '\n' ) ,
213+ annotations : {
214+ title : 'Browser Type Text' ,
215+ destructiveHint : true ,
216+ } ,
192217 parameters : z . object ( {
193218 ref : z . string ( ) . describe ( 'The ref attribute from the ARIA snapshot (e.g., "23")' ) ,
194219 element : z . string ( ) . describe ( 'Description of the element being typed into for context' ) ,
@@ -215,6 +240,10 @@ let scraping_browser_type_ref = {
215240let scraping_browser_screenshot = {
216241 name : 'scraping_browser_screenshot' ,
217242 description : 'Take a screenshot of the current page' ,
243+ annotations : {
244+ title : 'Browser Screenshot' ,
245+ readOnlyHint : true ,
246+ } ,
218247 parameters : z . object ( {
219248 full_page : z . boolean ( ) . optional ( ) . describe ( [
220249 'Whether to screenshot the full page (default: false)' ,
@@ -238,6 +267,10 @@ let scraping_browser_get_html = {
238267 description : 'Get the HTML content of the current page. Avoid using this '
239268 + 'tool and if used, use full_page option unless it is important to see '
240269 + 'things like script tags since this can be large' ,
270+ annotations : {
271+ title : 'Browser Get HTML' ,
272+ readOnlyHint : true ,
273+ } ,
241274 parameters : z . object ( {
242275 full_page : z . boolean ( ) . optional ( ) . describe ( [
243276 'Whether to get the full page HTML including head and script tags' ,
@@ -263,6 +296,10 @@ let scraping_browser_get_html = {
263296let scraping_browser_get_text = {
264297 name : 'scraping_browser_get_text' ,
265298 description : 'Get the text content of the current page' ,
299+ annotations : {
300+ title : 'Browser Get Text' ,
301+ readOnlyHint : true ,
302+ } ,
266303 parameters : z . object ( { } ) ,
267304 execute : async ( ) => {
268305 const page = await ( await require_browser ( ) ) . get_page ( ) ;
@@ -274,6 +311,10 @@ let scraping_browser_get_text = {
274311let scraping_browser_scroll = {
275312 name : 'scraping_browser_scroll' ,
276313 description : 'Scroll to the bottom of the current page' ,
314+ annotations : {
315+ title : 'Browser Scroll' ,
316+ destructiveHint : true ,
317+ } ,
277318 parameters : z . object ( { } ) ,
278319 execute : async ( ) => {
279320 const page = await ( await require_browser ( ) ) . get_page ( ) ;
@@ -295,6 +336,10 @@ let scraping_browser_scroll_to_ref = {
295336 'Use scraping_browser_snapshot first to get the correct ref values.' ,
296337 'This is more reliable than CSS selectors.'
297338 ] . join ( '\n' ) ,
339+ annotations : {
340+ title : 'Browser Scroll to Element' ,
341+ destructiveHint : true ,
342+ } ,
298343 parameters : z . object ( {
299344 ref : z . string ( ) . describe ( 'The ref attribute from the ARIA snapshot (e.g., "23")' ) ,
300345 element : z . string ( ) . describe ( 'Description of the element to scroll to' ) ,
@@ -320,6 +365,10 @@ let scraping_browser_network_requests = {
320365 'Useful for debugging API calls, tracking data fetching, and '
321366 + 'understanding page behavior.'
322367 ] . join ( '\n' ) ,
368+ annotations : {
369+ title : 'Browser Network Requests' ,
370+ readOnlyHint : true ,
371+ } ,
323372 parameters : z . object ( { } ) ,
324373 execute : async ( ) => {
325374 const browser_session = await require_browser ( ) ;
@@ -356,6 +405,10 @@ let scraping_browser_wait_for_ref = {
356405 'Use scraping_browser_snapshot first to get the correct ref values.' ,
357406 'This is more reliable than CSS selectors.'
358407 ] . join ( '\n' ) ,
408+ annotations : {
409+ title : 'Browser Wait for Element' ,
410+ readOnlyHint : true ,
411+ } ,
359412 parameters : z . object ( {
360413 ref : z . string ( ) . describe ( 'The ref attribute from the ARIA snapshot (e.g., "23")' ) ,
361414 element : z . string ( ) . describe ( 'Description of the element being waited for' ) ,
0 commit comments