mcp-scraper 0.3.42 → 0.3.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/bin/api-server.cjs +1558 -1312
  2. package/dist/bin/api-server.cjs.map +1 -1
  3. package/dist/bin/api-server.js +3 -3
  4. package/dist/bin/mcp-scraper-cli.cjs +1 -1
  5. package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
  6. package/dist/bin/mcp-scraper-cli.js +1 -1
  7. package/dist/bin/mcp-scraper-install.cjs +1 -1
  8. package/dist/bin/mcp-scraper-install.cjs.map +1 -1
  9. package/dist/bin/mcp-scraper-install.js +1 -1
  10. package/dist/bin/mcp-stdio-server.cjs +283 -224
  11. package/dist/bin/mcp-stdio-server.cjs.map +1 -1
  12. package/dist/bin/mcp-stdio-server.js +2 -2
  13. package/dist/bin/paa-harvest.cjs.map +1 -1
  14. package/dist/bin/paa-harvest.js +2 -2
  15. package/dist/{chunk-RXJHXBGG.js → chunk-BRVX6RDN.js} +21 -4
  16. package/dist/chunk-BRVX6RDN.js.map +1 -0
  17. package/dist/{chunk-KPF64WST.js → chunk-E7BZFMWB.js} +284 -225
  18. package/dist/chunk-E7BZFMWB.js.map +1 -0
  19. package/dist/{chunk-DVRPXPYH.js → chunk-FUVQR6GK.js} +14 -3
  20. package/dist/chunk-FUVQR6GK.js.map +1 -0
  21. package/dist/chunk-NVTFLLEG.js +7 -0
  22. package/dist/chunk-NVTFLLEG.js.map +1 -0
  23. package/dist/{chunk-GMTS35L6.js → chunk-RXNHY3TF.js} +2 -2
  24. package/dist/{db-LYQENFPW.js → db-H3S3M6KK.js} +2 -2
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.js +2 -2
  27. package/dist/{server-CZT7EULY.js → server-MKUN6NQZ.js} +513 -370
  28. package/dist/server-MKUN6NQZ.js.map +1 -0
  29. package/dist/{worker-FNSBPP7Y.js → worker-4CVMSUZR.js} +4 -4
  30. package/package.json +4 -2
  31. package/dist/chunk-DVRPXPYH.js.map +0 -1
  32. package/dist/chunk-KPF64WST.js.map +0 -1
  33. package/dist/chunk-OUZZNW3I.js +0 -7
  34. package/dist/chunk-OUZZNW3I.js.map +0 -1
  35. package/dist/chunk-RXJHXBGG.js.map +0 -1
  36. package/dist/server-CZT7EULY.js.map +0 -1
  37. /package/dist/{chunk-GMTS35L6.js.map → chunk-RXNHY3TF.js.map} +0 -0
  38. /package/dist/{db-LYQENFPW.js.map → db-H3S3M6KK.js.map} +0 -0
  39. /package/dist/{worker-FNSBPP7Y.js.map → worker-4CVMSUZR.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PACKAGE_VERSION
3
- } from "./chunk-OUZZNW3I.js";
3
+ } from "./chunk-NVTFLLEG.js";
4
4
  import {
5
5
  browserServiceProfileName,
6
6
  browserServiceProfileSaveChanges,
@@ -158,6 +158,19 @@ Multi-step orchestrations \u2014 prefer these over hand-chaining primitives when
158
158
  - Stand up a rank-tracking blueprint (database + cron + ingestion plan) -> **rank_tracker_workflow**.
159
159
  - Find which sources an AI answer cites for a query (AEO) -> **query_fanout_workflow** (open a browser
160
160
  session on chatgpt.com or claude.ai FIRST, then run it against that session).
161
+ - Not sure which workflow fits a goal -> **workflow_suggest**; to just see what's available -> **workflow_list**.
162
+ - Hosted/stepwise chain: **workflow_run** starts and returns \`runId\` (+ \`nextStep\` when multi-leg) ->
163
+ **workflow_step** with that \`runId\` advances one leg at a time until \`done\` -> **workflow_status**
164
+ re-opens a run to check state or recover artifact ids -> **workflow_artifact_read** pulls one artifact's
165
+ full content by \`runId\` + \`artifactId\`.
166
+ - Browser replay recording: **browser_replay_start** begins it -> **browser_replay_mark** (while
167
+ recording) locates a DOM target and returns a ready-to-use timed annotation -> **browser_replay_stop**
168
+ ends it -> feed collected annotations to **browser_replay_annotate**, or just
169
+ **browser_replay_download** the plain MP4. **browser_list_replays** recovers replay ids.
170
+ - Video breakdown is async: **video_frame_analysis** takes a DIRECT media file URL (resolve
171
+ YouTube/Facebook/Instagram page URLs to one first, e.g. via \`facebook_page_intel\`'s \`videoUrl\`) and
172
+ returns a \`runId\` immediately -> poll **video_frame_analysis_status** with that \`runId\` until \`status\`
173
+ is \`done\`.
161
174
 
162
175
  ## Notes
163
176
  - Bulk / full-site crawls: call \`extract_site\` with \`rotateProxies:true\` for blocked or rate-limited
@@ -2789,25 +2802,25 @@ ${rows}` : ""
2789
2802
  // src/mcp/mcp-tool-schemas.ts
2790
2803
  import { z } from "zod";
2791
2804
  var HarvestPaaInputSchema = {
2792
- query: z.string().min(1).describe('Core search topic only. If the user says "best hvac company in Denver CO", use query="best hvac company" and location="Denver, CO". Do not include the location in query when it can be separated.'),
2793
- location: z.string().optional().describe('City, region, or country for geo-targeted results, inferred from the user request when present, e.g. "Denver, CO", "Tokyo, Japan", "London, UK".'),
2794
- maxQuestions: z.number().int().min(1).max(200).default(30).describe("Number of PAA questions to extract. Default 30. Maximum 200. Use 10 for quick probes, 30 for normal research, 100-200 when the user asks for everything/full/deep research. Larger harvests get a longer server time budget (151-200 questions \u2192 up to 280s). Credits are charged by extracted question; unused request hold is refunded."),
2795
- gl: z.string().length(2).default("us").describe("Google country code inferred from location or user language. Examples: United States us, United Kingdom gb, Japan jp, Canada ca, Australia au."),
2796
- hl: z.string().default("en").describe("Google interface/content language inferred from the user request. Use en unless the user asks for another language or locale."),
2797
- device: z.enum(["desktop", "mobile"]).default("desktop").describe("SERP device context. Use desktop by default; use mobile only when the user asks for mobile rankings."),
2798
- proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_PROXY_MODE).describe('Leave unset \u2014 routing is automatic (clean egress by default; residential only when a location is given, with fallback). Set "location" only to force local-pack targeting.'),
2799
- proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional US ZIP override for residential location proxy targeting. Use only with proxyMode location when the user gives a specific ZIP or city-center targeting needs to be forced."),
2800
- debug: z.boolean().default(false).describe("Include sanitized browser/session/location diagnostics in the response. Use true when debugging localization, CAPTCHA, or proxy behavior.")
2805
+ query: z.string().min(1).describe('The search query. KEEP the place in the query text for localized results (e.g. "best hvac company Denver CO") and also set location \u2014 city-in-query is what localizes reliably.'),
2806
+ location: z.string().optional().describe('City, region, or country for geo signals, e.g. "Denver, CO". Set alongside city-in-query wording; alone it does NOT reliably localize.'),
2807
+ maxQuestions: z.number().int().min(1).max(200).default(30).describe("PAA questions to extract. Default 30, maximum 200. Use 10 for quick probes, 100-200 for deep research. Billed per extracted question; unused hold refunded."),
2808
+ gl: z.string().length(2).default("us").describe("Google country code inferred from location or user language."),
2809
+ hl: z.string().default("en").describe("Google interface/content language inferred from the user request."),
2810
+ device: z.enum(["desktop", "mobile"]).default("desktop").describe("SERP device context. Use mobile only for mobile rankings."),
2811
+ proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_PROXY_MODE).describe('Leave unset (clean egress). Do NOT set "location" just because a city was named \u2014 that comes from city-in-query wording. "location" forces residential geo-IP for rank-tracking fidelity, is frequently CAPTCHA-blocked, and accepts failures.'),
2812
+ proxyZip: z.string().regex(/^\d{5}$/).optional().describe('US ZIP for residential geo-IP targeting. Only meaningful with proxyMode "location".'),
2813
+ debug: z.boolean().default(false).describe("Include sanitized diagnostics for debugging localization, CAPTCHA, or proxy behavior.")
2801
2814
  };
2802
2815
  var ExtractUrlInputSchema = {
2803
- url: z.string().url().describe("Public http/https URL to extract. Use this when the user provides one specific page URL."),
2804
- screenshot: z.boolean().default(false).describe("Also capture a full-page screenshot of the URL. Saved to ~/Downloads/mcp-scraper/screenshots/ and returned inline. Use when the user asks to see or capture the page visually."),
2805
- screenshotDevice: z.enum(["desktop", "mobile"]).default("desktop").describe("Viewport for screenshot. desktop = 1440\xD7900. mobile = 390\xD7844. Default desktop."),
2806
- extractBranding: z.boolean().default(false).describe("Extract brand colors, fonts, logo, and favicon using a rendered browser session. Returns colorScheme (light/dark), colors (primary/accent/background/text/heading as hex), fonts (heading/body family names), and assets (logo URL, favicon URL). Use when the user asks about brand colors, site theme, or brand assets."),
2807
- downloadMedia: z.boolean().default(false).describe("Extract and download all page media (images, video, audio) to ~/Downloads/mcp-scraper/media/. Ad networks, tracking pixels, and noise URLs are filtered automatically. Use when the user asks to download or harvest assets from a page."),
2816
+ url: z.string().url().describe("Public http/https URL to extract."),
2817
+ screenshot: z.boolean().default(false).describe("Capture a full-page screenshot, saved to ~/Downloads/mcp-scraper/screenshots/ and returned inline."),
2818
+ screenshotDevice: z.enum(["desktop", "mobile"]).default("desktop").describe("Viewport for screenshot. desktop = 1440\xD7900, mobile = 390\xD7844."),
2819
+ extractBranding: z.boolean().default(false).describe("Extract brand colors, fonts, logo, and favicon via a rendered browser session."),
2820
+ downloadMedia: z.boolean().default(false).describe("Extract and download page media (images/video/audio) to ~/Downloads/mcp-scraper/media/. Ad/tracking noise is filtered automatically."),
2808
2821
  mediaTypes: z.array(z.enum(["image", "video", "audio"])).default(["image", "video", "audio"]).describe("Which media types to download. Default all three."),
2809
- allowLocal: z.boolean().default(false).describe("Allow localhost and private-network URLs. For local development only."),
2810
- depositToVault: z.boolean().default(false).describe("Also save the full page content into the user's MCP Memory Library vault, server-side. The complete body is stored and embedded for semantic recall WITHOUT passing through this conversation \u2014 the tool result only confirms the saved note. Use when the user asks to save/remember/store a page, or to build a knowledge base from scrapes."),
2822
+ allowLocal: z.boolean().default(false).describe("Allow localhost and private-network URLs. Local development only."),
2823
+ depositToVault: z.boolean().default(false).describe("Save the full page content into the user's MCP Memory vault server-side, embedded for semantic recall \u2014 the full body is NOT returned to chat."),
2811
2824
  vaultName: z.string().trim().min(1).max(120).optional().describe("Optional vault to deposit into. Defaults to the user's personal vault.")
2812
2825
  };
2813
2826
  var MapSiteUrlsInputSchema = {
@@ -2815,34 +2828,34 @@ var MapSiteUrlsInputSchema = {
2815
2828
  maxUrls: z.number().int().min(1).max(1e4).optional().describe("Maximum URLs to discover. Use 100 for normal maps, up to 10000 for a full inventory. Large maps (over 500 URLs) write the complete inventory to a local file and return only a summary plus the file path instead of the full list inline.")
2816
2829
  };
2817
2830
  var ExtractSiteInputSchema = {
2818
- url: z.string().url().describe("Public website URL or domain to crawl for page CONTENT across multiple pages (map + scrape). Use when the user wants the content/text/markdown of a site's pages. For a technical SEO audit (issues, link graph, indexability, headings, image weights) use audit_site instead \u2014 extract_site returns content only, not analysis."),
2819
- maxPages: z.number().int().min(1).max(1e4).optional().describe("Maximum pages to extract. Use 50 for a normal crawl, up to 10000 for a full-site bulk scrape. Bulk crawls (over 25 pages) switch to folder mode: every page is saved as its own Markdown file in a local folder and the response returns only a summary plus the folder path, so the full content never floods the context window."),
2820
- rotateProxies: z.boolean().optional().describe("Route page fetches through rotating residential proxies in headful browsers to defeat rate-limiting and bot blocks (403/429). Discovers URLs from the sitemap, fetches in batches with a fresh proxy per batch, retries failures on a new proxy, and automatically parallelizes across the account's concurrency slots. Slower and pricier than the default fetch path, so use only when a site blocks normal crawling."),
2821
- rotateProxyEvery: z.number().int().min(1).max(100).optional().describe("When rotateProxies is on, how many pages to fetch per browser/proxy before discarding it and minting a fresh one. Default 30. Lower values rotate IPs more aggressively against strict rate limits."),
2822
- formats: z.array(z.enum(["markdown", "links", "json", "images", "branding"])).optional().describe("Which data formats to include in the per-page output. markdown=page content as Markdown, links=internal/external link graph, json=structured data/schema, images=per-page image URLs (links only, no downloads), branding=site-level logo/colors/fonts captured once from the homepage (requires a browser, adds time). markdown, links, json, and images are always captured cheaply from the HTML; branding is the only opt-in capture. Defaults to markdown+links when omitted.")
2831
+ url: z.string().url().describe("Public website URL or domain to crawl for page CONTENT (map + scrape). For a technical SEO audit use audit_site instead \u2014 this returns content only, not analysis."),
2832
+ maxPages: z.number().int().min(1).max(1e4).optional().describe("Maximum pages to extract. Bulk crawls (over 25 pages) switch to folder mode: each page saved as its own Markdown file, with a summary plus folder path returned instead of inlining content."),
2833
+ rotateProxies: z.boolean().optional().describe("Route page fetches through rotating residential proxies to defeat rate-limiting and bot blocks (403/429). Slower and pricier \u2014 use only when a site blocks normal crawling."),
2834
+ rotateProxyEvery: z.number().int().min(1).max(100).optional().describe("When rotateProxies is on, pages fetched per proxy before rotating. Default 30."),
2835
+ formats: z.array(z.enum(["markdown", "links", "json", "images", "branding"])).optional().describe("Per-page output formats: markdown, links, json, images are captured cheaply from HTML; branding (site-level logo/colors/fonts) requires a browser and adds time. Defaults to markdown+links.")
2823
2836
  };
2824
2837
  var AuditSiteInputSchema = {
2825
- url: z.string().url().describe("Public website URL or domain to run a full technical SEO audit on. Use when the user asks for a technical audit, SEO audit, site health check, or a Screaming-Frog-style crawl \u2014 i.e. they want ANALYSIS (issues, internal link graph, indexability, heading breakdown, image sizes/formats), not just page content. For plain content scraping use extract_site instead."),
2826
- maxPages: z.number().int().min(1).max(1e4).optional().describe("Maximum pages to crawl and audit. Use 50 for a normal audit, up to 10000 for a full-site audit. The audit always writes a folder of analysis files (report.md, issues.json, pages.jsonl, links.jsonl, link-metrics.jsonl, images.jsonl) plus per-page content, and returns a headline summary plus the folder path."),
2827
- rotateProxies: z.boolean().optional().describe("Route page fetches through rotating residential proxies to defeat rate-limiting and bot blocks (403/429). Slower and pricier than the default fetch path, so use only when a site blocks normal crawling."),
2828
- rotateProxyEvery: z.number().int().min(1).max(100).optional().describe("When rotateProxies is on, how many pages to fetch per browser/proxy before discarding it and minting a fresh one. Default 30.")
2838
+ url: z.string().url().describe("Public website URL or domain for a full technical SEO audit (issues, link graph, indexability, headings, images). For plain content use extract_site instead."),
2839
+ maxPages: z.number().int().min(1).max(1e4).optional().describe("Maximum pages to crawl and audit. Always writes a folder of analysis files plus per-page content, returning a summary plus the folder path."),
2840
+ rotateProxies: z.boolean().optional().describe("Route page fetches through rotating residential proxies to defeat rate-limiting and bot blocks. Slower/pricier \u2014 use only when a site blocks normal crawling."),
2841
+ rotateProxyEvery: z.number().int().min(1).max(100).optional().describe("When rotateProxies is on, pages fetched per proxy before rotating. Default 30.")
2829
2842
  };
2830
2843
  var YoutubeHarvestInputSchema = {
2831
2844
  mode: z.enum(["search", "channel"]).describe("Use search for topic/keyword requests. Use channel when the user provides @handle, channel ID, or channel URL."),
2832
2845
  query: z.string().optional().describe("Required when mode is search. The YouTube search topic in the user\u2019s words."),
2833
2846
  channelHandle: z.string().optional().describe("YouTube channel handle, channel ID, or URL. Examples: @mkbhd, UC..., https://youtube.com/@mkbhd."),
2834
- maxVideos: z.number().int().min(1).max(500).default(50).describe("Number of videos to return. Default 50, maximum 500. Use 10-25 for quick topic discovery, 50 for normal channel/search harvests, and larger values only when the user asks for full channel/history because large responses consume more context.")
2847
+ maxVideos: z.number().int().min(1).max(500).default(50).describe("Number of videos to return. Default 50, maximum 500.")
2835
2848
  };
2836
2849
  var YoutubeTranscribeInputSchema = {
2837
2850
  videoId: z.string().min(1).optional().describe("YouTube video ID, e.g. dQw4w9WgXcQ. Use only an ID returned by youtube_harvest or visible in a YouTube URL; do not invent one."),
2838
- url: z.string().url().optional().describe("Full YouTube URL, e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ or https://youtu.be/dQw4w9WgXcQ. Use this when the user pasted a URL instead of an ID. Provide videoId or url.")
2851
+ url: z.string().url().optional().describe("Full YouTube URL. Use when the user pasted a URL instead of an ID. Provide videoId or url.")
2839
2852
  };
2840
2853
  var FacebookPageIntelInputSchema = {
2841
- pageId: z.string().optional().describe("Facebook advertiser/page ID. Use only a pageId returned by facebook_ad_search/facebook_page_intel or copied from Facebook Ad Library; do not construct one yourself."),
2842
- libraryId: z.string().optional().describe("Facebook Ad Library archive ID for a known ad or advertiser sample. Use a libraryId returned by facebook_ad_search, or a libraryId/adArchiveId visible in Ad Library."),
2854
+ pageId: z.string().optional().describe("Facebook advertiser/page ID. Use only a value returned by facebook_ad_search or copied from Ad Library."),
2855
+ libraryId: z.string().optional().describe("Facebook Ad Library archive ID. Use a value returned by facebook_ad_search, or a libraryId/adArchiveId visible in Ad Library."),
2843
2856
  query: z.string().optional().describe("Advertiser or brand name when pageId/libraryId is not known. One of pageId, libraryId, or query is required."),
2844
- maxAds: z.number().int().min(1).max(200).default(50).describe("Maximum ads to inspect. Default 50, maximum 200. Prefer 25-50 for focused advertiser scans; use 100-200 only when the user asks for a broad ad archive sweep."),
2845
- country: z.string().length(2).default("US").describe("Two-letter Ad Library country code. Default US. Examples: US, CA, GB, AU. Infer from the user request when they name a country.")
2857
+ maxAds: z.number().int().min(1).max(200).default(50).describe("Maximum ads to inspect. Default 50, maximum 200."),
2858
+ country: z.string().length(2).default("US").describe("Two-letter Ad Library country code. Default US.")
2846
2859
  };
2847
2860
  var FacebookAdSearchInputSchema = {
2848
2861
  query: z.string().min(1).describe("Advertiser, brand, competitor, niche, or keyword to search in Facebook Ad Library."),
@@ -2850,18 +2863,28 @@ var FacebookAdSearchInputSchema = {
2850
2863
  maxResults: z.number().int().min(1).max(20).default(10).describe("Maximum advertisers to return. Default 10, maximum 20. Prefer tighter search terms over maxing this out.")
2851
2864
  };
2852
2865
  var RedditThreadInputSchema = {
2853
- url: z.string().min(1).describe("A reddit.com thread/post URL (www, old, or new Reddit, or a redd.it link). The service fetches it via old.reddit through a residential proxy and returns the post plus its comment tree."),
2866
+ url: z.string().min(1).describe("A reddit.com thread/post URL (www, old, new Reddit, or redd.it)."),
2854
2867
  maxComments: z.number().int().min(1).max(2e3).optional().describe("Optional cap on comments returned. Omit to return all captured comments.")
2855
2868
  };
2869
+ var VideoFrameAnalysisInputSchema = {
2870
+ sourceUrl: z.string().min(1).describe("A DIRECT video file URL (.mp4/.webm/.mov). Not a YouTube/Facebook/Instagram page URL \u2014 resolve those to a direct media URL first. Videos up to 30 minutes are supported."),
2871
+ intervalS: z.number().min(1).max(30).optional().describe("Preferred seconds between sampled frames (1-30, default 2). Automatically widened for long videos so the whole duration is covered within the frame budget."),
2872
+ maxFrames: z.number().int().min(1).max(120).optional().describe("Max frames analyzed (<=120, default 120). Frames are spread evenly across the whole video."),
2873
+ detail: z.enum(["fast", "standard", "deep"]).optional().describe("Analysis depth. Default standard."),
2874
+ vault: z.string().min(1).optional().describe('Memory vault to save the finished breakdown into. Default "Library".')
2875
+ };
2876
+ var VideoFrameAnalysisStatusInputSchema = {
2877
+ runId: z.string().min(1).describe("The runId returned by video_frame_analysis.")
2878
+ };
2856
2879
  var FacebookAdTranscribeInputSchema = {
2857
- videoUrl: z.string().url().describe("Direct Facebook CDN video URL from a facebook_page_intel ad result. Do not pass a public Facebook reel/post/share URL here; use facebook_video_transcribe for organic Facebook URLs.")
2880
+ videoUrl: z.string().url().describe("Direct Facebook CDN video URL from facebook_page_intel. Do not pass a public post/reel/share URL \u2014 use facebook_video_transcribe for those.")
2858
2881
  };
2859
2882
  var FacebookVideoTranscribeInputSchema = {
2860
- url: z.string().url().describe("Organic Facebook reel, video, watch, post, or share URL from facebook.com, m.facebook.com, or fb.watch. The tool renders the page, extracts the best matching public Facebook CDN MP4 URL, then transcribes it. Use this when the user pastes a normal Facebook video page URL and asks for the transcript or downloadable MP4."),
2883
+ url: z.string().url().describe("Organic Facebook reel/video/watch/post/share URL from facebook.com, m.facebook.com, or fb.watch."),
2861
2884
  quality: z.enum(["best", "hd", "sd"]).default("best").describe("Preferred progressive MP4 quality. Use best by default; hd prefers the highest HD progressive URL; sd forces the SD URL.")
2862
2885
  };
2863
2886
  var GoogleAdsSearchInputSchema = {
2864
- query: z.string().min(1).describe("A domain (e.g. getviktor.com) or advertiser/brand name to look up in the Google Ads Transparency Center. Domains resolve to the advertisers running ads that point to that site."),
2887
+ query: z.string().min(1).describe("A domain (e.g. getviktor.com) or advertiser/brand name to look up in Google Ads Transparency Center."),
2865
2888
  region: z.string().length(2).default("US").describe("Two-letter region code for where the ads are shown. Default US. Examples: US, CA, GB, AU."),
2866
2889
  maxResults: z.number().int().min(1).max(20).default(10).describe("Maximum advertisers to return. Default 10, maximum 20.")
2867
2890
  };
@@ -2872,78 +2895,78 @@ var GoogleAdsPageIntelInputSchema = {
2872
2895
  maxAds: z.number().int().min(1).max(200).default(50).describe("Maximum creatives to inspect and hydrate. Default 50, maximum 200. Prefer 25-50 for focused scans.")
2873
2896
  };
2874
2897
  var GoogleAdsTranscribeInputSchema = {
2875
- videoUrl: z.string().url().describe("Direct googlevideo.com playback URL from a google_ads_page_intel video ad result (the videoUrl field). For YouTube-hosted ads use youtube_transcribe with the returned youtubeVideoId instead.")
2898
+ videoUrl: z.string().url().describe("Direct googlevideo.com playback URL from google_ads_page_intel. For YouTube-hosted ads use youtube_transcribe instead.")
2876
2899
  };
2877
2900
  var InstagramProfileContentInputSchema = {
2878
2901
  handle: z.string().min(1).optional().describe("Instagram handle, with or without @. Provide handle or url."),
2879
- url: z.string().url().optional().describe("Instagram profile URL, e.g. https://www.instagram.com/nasaartemis/. Provide handle or url."),
2880
- profile: z.string().min(1).optional().describe("Optional saved hosted browser profile name to load authenticated Instagram access. If omitted, the server uses its configured default profile when present."),
2881
- saveProfileChanges: z.boolean().optional().describe("Whether to save browser changes back to the hosted profile. Leave unset unless intentionally updating the saved login session."),
2882
- maxItems: z.number().int().min(1).max(2e3).default(50).describe("Maximum profile grid post/reel/tv URLs to collect. Default 50, maximum 2000. Use higher values only when the user asks for a fuller archive."),
2883
- maxScrolls: z.number().int().min(0).max(250).default(10).describe("Maximum pagination scroll attempts. Default 10, maximum 250. Increase for long profiles when Instagram continues loading more grid links."),
2884
- scrollDelayMs: z.number().int().min(250).max(5e3).default(1200).describe("Delay after each pagination scroll before collecting newly loaded links. Default 1200ms. Increase to 2000-3000ms when Instagram loads slowly."),
2885
- stableScrollLimit: z.number().int().min(1).max(10).default(4).describe("Stop after this many consecutive scrolls with no new links or scroll progress. Default 4.")
2902
+ url: z.string().url().optional().describe("Instagram profile URL. Provide handle or url."),
2903
+ profile: z.string().min(1).optional().describe("Optional saved hosted browser profile name for authenticated Instagram access."),
2904
+ saveProfileChanges: z.boolean().optional().describe("Save browser changes back to the hosted profile. Leave unset unless intentionally updating the saved login."),
2905
+ maxItems: z.number().int().min(1).max(2e3).default(50).describe("Maximum grid URLs to collect. Default 50, maximum 2000."),
2906
+ maxScrolls: z.number().int().min(0).max(250).default(10).describe("Maximum pagination scroll attempts. Default 10, maximum 250."),
2907
+ scrollDelayMs: z.number().int().min(250).max(5e3).default(1200).describe("Delay after each scroll before collecting new links. Default 1200ms."),
2908
+ stableScrollLimit: z.number().int().min(1).max(10).default(4).describe("Stop after this many consecutive scrolls with no new links.")
2886
2909
  };
2887
2910
  var InstagramMediaDownloadInputSchema = {
2888
- url: z.string().url().describe("Instagram post, reel, or tv URL, e.g. https://www.instagram.com/reel/SHORTCODE/. The tool renders the page, extracts text, image metadata, and Instagram CDN media tracks."),
2889
- profile: z.string().min(1).optional().describe("Optional saved hosted browser profile name to load authenticated Instagram access. If omitted, the server uses its configured default profile when present."),
2890
- saveProfileChanges: z.boolean().optional().describe("Whether to save browser changes back to the hosted profile. Leave unset unless intentionally updating the saved login session."),
2891
- mediaTypes: z.array(z.enum(["image", "video", "audio"])).default(["image", "video", "audio"]).describe("Which media types to download when downloadMedia is true. Reels commonly expose separate video-only and audio-only MP4 tracks."),
2892
- downloadMedia: z.boolean().default(true).describe("Download extracted text/media files to the MCP Scraper output directory when the API server can write files. Always returns extracted media URLs even when false."),
2893
- downloadAllTracks: z.boolean().default(false).describe("Download every captured Instagram MP4 track instead of only the selected best video and audio tracks. Use false by default to avoid duplicate bitrates."),
2894
- includeTranscript: z.boolean().default(false).describe("Transcribe the selected audio track when available. This adds transcription cost and may take longer."),
2895
- mux: z.boolean().default(true).describe("When video and audio tracks are downloaded separately, try to mux them into a single MP4 if ffmpeg is available. Returns separate tracks when muxing is unavailable.")
2911
+ url: z.string().url().describe("Instagram post, reel, or tv URL, e.g. https://www.instagram.com/reel/SHORTCODE/."),
2912
+ profile: z.string().min(1).optional().describe("Optional saved hosted browser profile name for authenticated Instagram access."),
2913
+ saveProfileChanges: z.boolean().optional().describe("Save browser changes back to the hosted profile. Leave unset unless intentionally updating the saved login."),
2914
+ mediaTypes: z.array(z.enum(["image", "video", "audio"])).default(["image", "video", "audio"]).describe("Which media types to download when downloadMedia is true."),
2915
+ downloadMedia: z.boolean().default(true).describe("Download extracted text/media files to the output directory. Media URLs are always returned even when false."),
2916
+ downloadAllTracks: z.boolean().default(false).describe("Download every captured MP4 track instead of only the best video/audio pair."),
2917
+ includeTranscript: z.boolean().default(false).describe("Transcribe the selected audio track. Adds transcription cost and time."),
2918
+ mux: z.boolean().default(true).describe("Mux separately downloaded video/audio tracks into one MP4 if ffmpeg is available.")
2896
2919
  };
2897
2920
  var MapsPlaceIntelInputSchema = {
2898
- businessName: z.string().min(1).describe('Business name only. If user says "Elite Roofing Denver CO", use businessName="Elite Roofing" and location="Denver, CO".'),
2899
- location: z.string().min(1).describe('City/region/country where the business should be searched, e.g. "Denver, CO". Infer from the user request when possible.'),
2921
+ businessName: z.string().min(1).describe('Business name only, e.g. "Elite Roofing" (not "Elite Roofing Denver CO" \u2014 put the city in location).'),
2922
+ location: z.string().min(1).describe('City/region/country where the business should be searched, e.g. "Denver, CO".'),
2900
2923
  gl: z.string().length(2).default("us").describe("Google country code inferred from location."),
2901
2924
  hl: z.string().length(2).default("en").describe("Language inferred from user request."),
2902
- includeReviews: z.boolean().default(false).describe("Whether to fetch individual review cards. Use true when the user asks for reviews, customer pain, complaints, praise, themes, or review evidence."),
2903
- maxReviews: z.number().int().min(1).max(500).default(50).describe("Max review cards to return when includeReviews is true. Default 50, maximum 500. Use 50 for normal review analysis and larger values only for deep review mining.")
2925
+ includeReviews: z.boolean().default(false).describe("Fetch individual review cards \u2014 for reviews, customer pain, complaints, or praise themes."),
2926
+ maxReviews: z.number().int().min(1).max(500).default(50).describe("Max review cards when includeReviews is true. Default 50, maximum 500.")
2904
2927
  };
2905
2928
  var MapsSearchInputSchema = {
2906
- query: z.string().min(1).describe('Business category, niche, keyword, or search term. If the user says "roofers in Denver CO", use query="roofers" and location="Denver, CO". Do not put the location here when it can be separated.'),
2907
- location: z.string().optional().describe('City, region, country, or service area for the Maps search, e.g. "Denver, CO". Infer from the user request when present.'),
2929
+ query: z.string().min(1).describe('Business category, niche, or search term, e.g. "roofers". Do not include location here \u2014 use location instead.'),
2930
+ location: z.string().optional().describe('City, region, country, or service area, e.g. "Denver, CO".'),
2908
2931
  gl: z.string().length(2).default("us").describe("Google country code inferred from location."),
2909
2932
  hl: z.string().length(2).default("en").describe("Language inferred from user request."),
2910
- maxResults: z.number().int().min(1).max(50).default(10).describe("Number of Google Maps business/profile candidates to return. Default 10. Maximum 50. Use 10 unless the user asks for more."),
2911
- proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_MAPS_PROXY_MODE).describe("Proxy targeting mode. Maps defaults to location so local market searches get city/state residential proxy targeting and rotation. Use configured to force the service proxy without city/ZIP targeting, and none only for local direct-network debugging."),
2912
- proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional US ZIP override for residential location proxy targeting. Use when the user gives a specific ZIP or city-center ZIP."),
2913
- debug: z.boolean().default(false).describe("Include sanitized browser/proxy diagnostics when debugging Maps localization, CAPTCHA, or proxy behavior.")
2933
+ maxResults: z.number().int().min(1).max(50).default(10).describe("Number of candidates to return. Default 10, maximum 50."),
2934
+ proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_MAPS_PROXY_MODE).describe("Defaults to location (city/state residential proxy targeting). configured forces the service proxy without city/ZIP targeting; none is local debugging only."),
2935
+ proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional US ZIP override for residential proxy targeting."),
2936
+ debug: z.boolean().default(false).describe("Include sanitized browser/proxy diagnostics.")
2914
2937
  };
2915
2938
  var DirectoryWorkflowInputSchema = {
2916
- query: z.string().min(1).describe("Business category, niche, or keyword to search on Google Maps for every selected market, e.g. roofers, dentists, med spas. Do not include the city here."),
2917
- state: z.string().min(2).default("TN").describe("US state abbreviation or state name used to select Census places, e.g. TN or Tennessee."),
2918
- minPopulation: z.number().int().min(0).default(1e5).describe('Minimum Census place population for market selection. Use 100000 for "cities above 100k population".'),
2919
- populationYear: z.number().int().min(2020).max(2025).default(2025).describe("Census population estimate year from the 2020-2025 Population Estimates Program city/place dataset."),
2920
- maxCities: z.number().int().min(1).max(100).default(25).describe("Maximum number of markets to process after sorting by population descending."),
2921
- maxResultsPerCity: z.number().int().min(1).max(50).default(50).describe("Google Maps business/profile candidates to collect for each city. Maximum 50."),
2922
- concurrency: z.number().int().min(1).max(5).default(5).describe("How many city Maps searches to run in parallel. Use 5 for broad directory batches unless debugging."),
2923
- includeZipGroups: z.boolean().default(true).describe("Attach ZIP groups from a configured US ZIPS CSV when available. Set MCP_SCRAPER_USZIPS_CSV_PATH on the API server or pass usZipsCsvPath in local/test mode."),
2924
- usZipsCsvPath: z.string().optional().describe("Local/test-only path to a US ZIPS CSV with state_abbr, zipcode, county, city columns, such as Lead Magician tools/analytics/data/uszips.csv. Deployed APIs should use MCP_SCRAPER_USZIPS_CSV_PATH instead."),
2925
- saveCsv: z.boolean().default(true).describe("Save a directory-ready CSV to the MCP Scraper output directory and return its path. CSV rows include source_location, result_position, business_name, review_stars, review_count, category, address, phone, hours_status, website_url, directions_url, place_url, CID fields, population, and ZIP groups."),
2926
- proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_MAPS_PROXY_MODE).describe("Proxy targeting mode for every city Maps search. Maps workflows default to location so each city can use city/state or ZIP-group residential proxy targeting. Use configured to force the service proxy without city/ZIP targeting, and none only for local direct-network debugging."),
2927
- proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional ZIP override for proxy targeting. Normally omit it so each city can use its ZIP group or city/state location."),
2928
- debug: z.boolean().default(false).describe("Include sanitized browser/proxy diagnostics in each Maps browser session when supported.")
2939
+ query: z.string().min(1).describe("Business category, niche, or keyword to search on Google Maps for every market. Do not include the city."),
2940
+ state: z.string().min(2).default("TN").describe("US state abbreviation or name used to select Census places, e.g. TN."),
2941
+ minPopulation: z.number().int().min(0).default(1e5).describe("Minimum Census place population for market selection."),
2942
+ populationYear: z.number().int().min(2020).max(2025).default(2025).describe("Census population estimate year (2020-2025 Population Estimates Program)."),
2943
+ maxCities: z.number().int().min(1).max(100).default(25).describe("Maximum markets to process after sorting by population descending."),
2944
+ maxResultsPerCity: z.number().int().min(1).max(50).default(50).describe("Google Maps candidates to collect per city."),
2945
+ concurrency: z.number().int().min(1).max(5).default(5).describe("City Maps searches to run in parallel."),
2946
+ includeZipGroups: z.boolean().default(true).describe("Attach ZIP groups from a configured US ZIPS CSV when available (MCP_SCRAPER_USZIPS_CSV_PATH or usZipsCsvPath)."),
2947
+ usZipsCsvPath: z.string().optional().describe("Local/test-only path to a US ZIPS CSV (state_abbr, zipcode, county, city columns). Deployed APIs should use MCP_SCRAPER_USZIPS_CSV_PATH instead."),
2948
+ saveCsv: z.boolean().default(true).describe("Save a directory-ready CSV of results to the MCP Scraper output directory and return its path."),
2949
+ proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_MAPS_PROXY_MODE).describe("Proxy targeting per city search. Defaults to location (city/ZIP-group residential targeting); configured forces the service proxy; none is local debugging only."),
2950
+ proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional ZIP override for proxy targeting; normally omitted."),
2951
+ debug: z.boolean().default(false).describe("Include sanitized browser/proxy diagnostics.")
2929
2952
  };
2930
2953
  var RankTrackerModeSchema = z.enum(["maps", "organic", "ai_overview", "paa"]);
2931
2954
  var RankTrackerBlueprintInputSchema = {
2932
2955
  projectName: z.string().min(1).optional().describe("Optional name for the rank tracker project, client, or campaign."),
2933
- targetDomain: z.string().min(1).optional().describe("Primary domain to track in organic results, AI Overview citations, and PAA sources, e.g. example.com."),
2934
- targetBusinessName: z.string().min(1).optional().describe("Primary Google Business Profile or brand/business name to match in Maps results. Required for reliable Maps rank tracking."),
2935
- trackingModes: z.array(RankTrackerModeSchema).min(1).max(4).default(["maps", "organic", "ai_overview", "paa"]).describe("Rank tracker surfaces to build. maps uses directory_workflow/maps_search. organic uses search_serp. ai_overview uses search_serp/harvest_paa. paa uses harvest_paa source presence."),
2936
- keywords: z.array(z.string().min(1)).max(200).default([]).describe("Seed keywords or service queries to track. Leave empty when the downstream AI should create the keyword table from user input."),
2937
- locations: z.array(z.string().min(1)).max(100).default([]).describe("Markets, cities, ZIPs, or service areas to track. Use city/state strings like Denver, CO for localized SERP and Maps checks."),
2956
+ targetDomain: z.string().min(1).optional().describe("Primary domain to track in organic results, AI Overview citations, and PAA sources."),
2957
+ targetBusinessName: z.string().min(1).optional().describe("Primary Google Business Profile/brand name to match in Maps results. Required for Maps tracking."),
2958
+ trackingModes: z.array(RankTrackerModeSchema).min(1).max(4).default(["maps", "organic", "ai_overview", "paa"]).describe("Rank tracker surfaces to build: maps, organic, ai_overview, paa."),
2959
+ keywords: z.array(z.string().min(1)).max(200).default([]).describe("Seed keywords or service queries to track. Leave empty to derive from user input downstream."),
2960
+ locations: z.array(z.string().min(1)).max(100).default([]).describe('Markets, cities, ZIPs, or service areas to track, e.g. "Denver, CO".'),
2938
2961
  competitors: z.array(z.string().min(1)).max(100).default([]).describe("Optional competitor domains or business names to persist as comparison targets."),
2939
- database: z.enum(["postgres", "neon", "supabase", "sqlite", "mysql"]).default("postgres").describe("Database family the downstream AI should target when generating migrations."),
2940
- scheduleCadence: z.enum(["daily", "weekly", "monthly", "custom"]).default("weekly").describe("Default recurring rank check cadence for the generated cron/heartbeat plan."),
2962
+ database: z.enum(["postgres", "neon", "supabase", "sqlite", "mysql"]).default("postgres").describe("Database family to target when generating migrations."),
2963
+ scheduleCadence: z.enum(["daily", "weekly", "monthly", "custom"]).default("weekly").describe("Default recurring rank check cadence."),
2941
2964
  customCron: z.string().min(1).optional().describe("Cron expression to use when scheduleCadence is custom."),
2942
- timezone: z.string().min(1).default("UTC").describe("IANA timezone for scheduled rank checks, e.g. America/Denver."),
2943
- includeCron: z.boolean().default(true).describe("Include a cron or heartbeat worker plan. Keep true for production rank trackers."),
2944
- includeDashboard: z.boolean().default(true).describe("Include dashboard/reporting requirements in the generated prompt."),
2945
- includeAlerts: z.boolean().default(true).describe("Include alert rules for rank movement and SERP feature gains/losses."),
2946
- notes: z.string().max(4e3).optional().describe("Extra product, client, stack, or hosting requirements to include in the implementation prompt.")
2965
+ timezone: z.string().min(1).default("UTC").describe("IANA timezone for scheduled rank checks."),
2966
+ includeCron: z.boolean().default(true).describe("Include a cron/heartbeat worker plan."),
2967
+ includeDashboard: z.boolean().default(true).describe("Include dashboard/reporting requirements."),
2968
+ includeAlerts: z.boolean().default(true).describe("Include alert rules for rank movement and SERP feature changes."),
2969
+ notes: z.string().max(4e3).optional().describe("Extra product, client, stack, or hosting requirements.")
2947
2970
  };
2948
2971
  var NullableString = z.string().nullable();
2949
2972
  var MapsSearchAttemptOutput = z.object({
@@ -3093,7 +3116,7 @@ var EntityIdsOutput = z.object({
3093
3116
  kgId: z.string().nullable(),
3094
3117
  cid: z.string().nullable(),
3095
3118
  gcid: z.string().nullable()
3096
- })).describe("Each entity actually named on the page, with whichever of its kgId/cid/gcid were found \u2014 the linked view. kgIds/cids/gcids below are the same IDs as flat deduplicated lists, without the name link, kept for backward compatibility."),
3119
+ })).describe("Entities named on the page with their kgId/cid/gcid. Flat lists below are the same IDs deduplicated, kept for backward compatibility."),
3097
3120
  kgIds: z.array(z.string()),
3098
3121
  cids: z.array(z.string()),
3099
3122
  gcids: z.array(z.string())
@@ -3282,6 +3305,22 @@ var FacebookAdSearchOutputSchema = {
3282
3305
  sampleLibraryId: NullableString
3283
3306
  }))
3284
3307
  };
3308
+ var VideoFrameAnalysisOutputSchema = {
3309
+ ok: z.boolean(),
3310
+ runId: NullableString,
3311
+ status: NullableString,
3312
+ message: NullableString
3313
+ };
3314
+ var VideoFrameAnalysisStatusOutputSchema = {
3315
+ ok: z.boolean(),
3316
+ runId: NullableString,
3317
+ status: NullableString,
3318
+ progress: z.object({ analyzed: z.number().int(), total: z.number().int() }).nullable().optional(),
3319
+ frameCount: z.number().int().nullable().optional(),
3320
+ artifactPath: NullableString,
3321
+ report: NullableString,
3322
+ error: NullableString
3323
+ };
3285
3324
  var RedditThreadOutputSchema = {
3286
3325
  sourceUrl: NullableString,
3287
3326
  oldRedditUrl: NullableString,
@@ -3544,7 +3583,7 @@ var WorkflowIdSchema = z.enum([
3544
3583
  "ai-overview-language"
3545
3584
  ]);
3546
3585
  var WorkflowListInputSchema = {
3547
- includeRecipes: z.boolean().default(true).describe("Include high-level AI-facing recipes such as market analysis, ICP research, forum/review research, brand design briefings, CRO audits, positioning briefs, content gaps, and AI search visibility audits.")
3586
+ includeRecipes: z.boolean().default(true).describe("Include high-level AI-facing recipes (market analysis, ICP research, CRO audits, content gaps, etc).")
3548
3587
  };
3549
3588
  var WorkflowSuggestInputSchema = {
3550
3589
  goal: z.string().min(1).describe('The user goal or job to route, e.g. "market analysis for roofers in Tennessee", "ICP research for med spas", "CRO audit for this URL", or "brand design briefing".'),
@@ -3557,12 +3596,12 @@ var WorkflowSuggestInputSchema = {
3557
3596
  maxSuggestions: z.number().int().min(1).max(8).default(3).describe("Number of matching workflow recipes to return.")
3558
3597
  };
3559
3598
  var WorkflowRunInputSchema = {
3560
- workflowId: WorkflowIdSchema.describe("Workflow to run: directory, get-leads, agent-packet, local-competitive-audit, map-comparison, serp-comparison, paa-expansion-brief, ai-overview-language. Use only these values; call workflow_list or workflow_suggest first when unsure."),
3561
- input: z.record(z.unknown()).default({}).describe("Workflow-specific input object. Examples: get-leads uses {query, location, maxResults?, enrichWebsites?, hydrateReviewCounts?}; agent-packet uses {keyword, domain?, location?, maxQuestions?}; local-competitive-audit uses {query, state, minPopulation?, maxCities?, maxResultsPerCity?, hydrateTop?, maxReviews?}; serp-comparison uses {keyword, domain?, url?, location?, extractTop?}."),
3599
+ workflowId: WorkflowIdSchema.describe("Workflow to run. Call workflow_list or workflow_suggest first when unsure."),
3600
+ input: z.record(z.unknown()).default({}).describe("Workflow-specific input object; shape depends on workflowId. Call workflow_list or workflow_suggest to see required fields."),
3562
3601
  webhookUrl: z.string().url().optional().describe("Optional HTTPS webhook to receive the completed hosted workflow run event.")
3563
3602
  };
3564
3603
  var WorkflowStepInputSchema = {
3565
- runId: z.string().min(1).describe("Workflow run id returned by workflow_run, workflow_step, or workflow_status. Use only a returned runId; do not construct one yourself. Advances the run by exactly one step (one logical leg, e.g. one live harvest).")
3604
+ runId: z.string().min(1).describe("Workflow run id returned by workflow_run/workflow_step/workflow_status. Advances the run by exactly one step.")
3566
3605
  };
3567
3606
  var WorkflowStatusInputSchema = {
3568
3607
  runId: z.string().min(1).describe("Workflow run id returned by workflow_run, workflow_step, or workflow_status. Use only a returned runId; do not construct one yourself.")
@@ -3570,7 +3609,7 @@ var WorkflowStatusInputSchema = {
3570
3609
  var WorkflowArtifactReadInputSchema = {
3571
3610
  runId: z.string().min(1).describe("Workflow run id returned by workflow_run, workflow_step, or workflow_status. Use only a returned runId; do not construct one yourself."),
3572
3611
  artifactId: z.string().min(1).describe("Artifact id from the run artifact list returned by workflow_run, workflow_step, or workflow_status. Use only a returned artifactId; do not construct one yourself."),
3573
- maxBytes: z.number().int().min(1e3).max(1e6).default(2e5).describe("Maximum bytes of artifact text to return inline. Use lower values for large CSV/JSON artifacts; call again with the downloadUrl if needed outside MCP.")
3612
+ maxBytes: z.number().int().min(1e3).max(1e6).default(2e5).describe("Maximum bytes of artifact text to return inline.")
3574
3613
  };
3575
3614
  var WorkflowRecipeOutput = z.object({
3576
3615
  id: z.string(),
@@ -3629,28 +3668,28 @@ var WorkflowArtifactReadOutputSchema = {
3629
3668
  text: z.string()
3630
3669
  };
3631
3670
  var SearchSerpInputSchema = {
3632
- query: z.string().min(1).describe('Core search topic only. Separate location when possible. If user says "best dentist in Brooklyn NY serp", use query="best dentist" and location="Brooklyn, NY".'),
3633
- location: z.string().optional().describe("City, region, or country for geo-targeted results, inferred from user request when present."),
3671
+ query: z.string().min(1).describe('The search query. KEEP the place in the query text for localized results (e.g. "best dentist Brooklyn NY") and also set location \u2014 city-in-query is what localizes reliably.'),
3672
+ location: z.string().optional().describe("City, region, or country for geo signals. Set alongside city-in-query wording; alone it does NOT reliably localize."),
3634
3673
  gl: z.string().length(2).default("us").describe("Google country code inferred from location or user language."),
3635
3674
  hl: z.string().default("en").describe("Google interface/content language inferred from user request."),
3636
- device: z.enum(["desktop", "mobile"]).default("desktop").describe("SERP device context. Use desktop by default; use mobile only when the user asks for mobile rankings."),
3637
- proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_PROXY_MODE).describe('Leave unset \u2014 routing is automatic. Set "location" only to force local-pack targeting.'),
3638
- proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional US ZIP override for residential location proxy targeting. Use only with proxyMode location when the user gives a specific ZIP or city-center targeting needs to be forced."),
3639
- debug: z.boolean().default(false).describe("Include sanitized browser/session/location diagnostics in the response. Use true when debugging localization, CAPTCHA, or proxy behavior."),
3640
- pages: z.number().int().min(1).max(2).default(1).describe("Number of result pages to fetch (1\u20132)")
3675
+ device: z.enum(["desktop", "mobile"]).default("desktop").describe("SERP device context. Use mobile only for mobile rankings."),
3676
+ proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_PROXY_MODE).describe('Leave unset (clean egress). Do NOT set "location" just because a city was named \u2014 that comes from city-in-query wording. "location" forces residential geo-IP for rank-tracking fidelity, is frequently CAPTCHA-blocked, and accepts failures.'),
3677
+ proxyZip: z.string().regex(/^\d{5}$/).optional().describe('US ZIP for residential geo-IP targeting. Only meaningful with proxyMode "location".'),
3678
+ debug: z.boolean().default(false).describe("Include sanitized diagnostics for debugging localization, CAPTCHA, or proxy behavior."),
3679
+ pages: z.number().int().min(1).max(2).default(1).describe("Number of result pages to fetch (1\u20132).")
3641
3680
  };
3642
3681
  var CaptureSerpSnapshotInputSchema = {
3643
- query: z.string().min(1).describe("Core search query to capture as a structured SERP Intelligence snapshot. Separate the place into location when the user gives a city, region, country, or ZIP."),
3644
- location: z.string().optional().describe("City, region, country, or service area used for localized Google results. MCP Scraper records location evidence; UULE alone is not proof of localization."),
3645
- gl: z.string().length(2).default("us").describe("Google country code inferred from the requested market, e.g. us, gb, ca, au."),
3682
+ query: z.string().min(1).describe('Search query to capture. KEEP the place in the query text for localized captures (e.g. "botox clinic austin tx") and also set location.'),
3683
+ location: z.string().optional().describe("City, region, country, or service area for localized Google results."),
3684
+ gl: z.string().length(2).default("us").describe("Google country code inferred from the requested market."),
3646
3685
  hl: z.string().default("en").describe("Google interface/content language inferred from the user request."),
3647
- device: z.enum(["desktop", "mobile"]).default("desktop").describe("SERP device context. Use mobile only when the user asks for mobile rankings or mobile SERP evidence."),
3648
- proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_PROXY_MODE).describe('Leave unset \u2014 routing is automatic. Set "location" only to force city/ZIP targeting.'),
3649
- proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional US ZIP override for residential location proxy targeting. Use only with proxyMode location when a precise city-center or ZIP proxy is needed."),
3650
- pages: z.number().int().min(1).max(2).default(1).describe("Number of Google result pages to capture. Use 1 normally and 2 only when the user needs deeper ranking evidence."),
3651
- debug: z.boolean().default(false).describe("Include sanitized browser, proxy, and location diagnostics. Use true when debugging localization, CAPTCHA, proxy selection, or capture reliability."),
3652
- includePageSnapshots: z.boolean().default(false).describe("Also capture ranking-page snapshots for selected SERP URLs through the same product capture path."),
3653
- pageSnapshotLimit: z.number().int().min(0).max(10).default(0).describe("Maximum ranking-page snapshots to capture when includePageSnapshots is true. Use 0 when only SERP evidence is needed.")
3686
+ device: z.enum(["desktop", "mobile"]).default("desktop").describe("SERP device context. Use mobile only for mobile rankings/evidence."),
3687
+ proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_PROXY_MODE).describe('Leave unset (clean egress). Do NOT set "location" just because a city was named \u2014 that comes from city-in-query wording. "location" forces residential geo-IP, is frequently CAPTCHA-blocked, and accepts failures.'),
3688
+ proxyZip: z.string().regex(/^\d{5}$/).optional().describe('US ZIP for residential geo-IP targeting. Only meaningful with proxyMode "location".'),
3689
+ pages: z.number().int().min(1).max(2).default(1).describe("Google result pages to capture. Use 2 only for deeper ranking evidence."),
3690
+ debug: z.boolean().default(false).describe("Include sanitized browser/proxy/location diagnostics."),
3691
+ includePageSnapshots: z.boolean().default(false).describe("Also capture ranking-page snapshots for selected SERP URLs."),
3692
+ pageSnapshotLimit: z.number().int().min(0).max(10).default(0).describe("Maximum ranking-page snapshots when includePageSnapshots is true.")
3654
3693
  };
3655
3694
  var ScreenshotInputSchema = {
3656
3695
  url: z.string().url().describe("URL to capture as a full-page screenshot. Use http or https. Pass allowLocal: true to capture localhost or private-network URLs during development."),
@@ -3658,15 +3697,15 @@ var ScreenshotInputSchema = {
3658
3697
  allowLocal: z.boolean().default(false).describe("Allow localhost and private-network URLs (127.x, 192.168.x, 10.x, etc.). For local development only \u2014 not for production use.")
3659
3698
  };
3660
3699
  var CaptureSerpPageSnapshotsInputSchema = {
3661
- urls: z.array(z.string().url()).min(1).max(25).describe("Public HTTP/HTTPS URLs to capture as SERP Intelligence page snapshots. Do not pass localhost, private IPs, file URLs, or internal admin URLs."),
3700
+ urls: z.array(z.string().url()).min(1).max(25).describe("Public HTTP/HTTPS URLs to capture. Do not pass localhost, private IPs, file URLs, or internal admin URLs."),
3662
3701
  targets: z.array(z.object({
3663
3702
  url: z.string().url().describe("Public HTTP/HTTPS URL to capture."),
3664
- sourceKind: z.enum(["organic", "ai_citation", "local_pack_website", "configured_target", "site_subject"]).default("configured_target").describe("Why this page is being captured for SERP Intelligence evidence."),
3703
+ sourceKind: z.enum(["organic", "ai_citation", "local_pack_website", "configured_target", "site_subject"]).default("configured_target").describe("Why this page is being captured."),
3665
3704
  sourcePosition: z.number().int().min(1).optional().describe("Ranking or citation position when the page came from SERP evidence.")
3666
- }).strict()).min(1).max(25).optional().describe("Structured page snapshot targets. Use this instead of urls when source kind or position should be preserved."),
3667
- maxConcurrency: z.number().int().min(1).max(5).default(2).describe("Parallel page captures. Use 2 normally; higher values can increase proxy/browser pressure."),
3668
- timeoutMs: z.number().int().min(1e3).max(6e4).default(15e3).describe("Per-page capture timeout in milliseconds. Increase for slow pages; timeout artifacts are returned as structured capture failures."),
3669
- debug: z.boolean().default(false).describe("Include sanitized browser/proxy diagnostics for page snapshot debugging. Use true for capture, network, or proxy troubleshooting.")
3705
+ }).strict()).min(1).max(25).optional().describe("Structured targets. Use instead of urls when source kind or position should be preserved."),
3706
+ maxConcurrency: z.number().int().min(1).max(5).default(2).describe("Parallel page captures."),
3707
+ timeoutMs: z.number().int().min(1e3).max(6e4).default(15e3).describe("Per-page capture timeout in milliseconds; timeouts return as structured capture failures."),
3708
+ debug: z.boolean().default(false).describe("Include sanitized browser/proxy diagnostics.")
3670
3709
  };
3671
3710
 
3672
3711
  // src/mcp/rank-tracker-blueprint.ts
@@ -4005,14 +4044,14 @@ function liveWebToolAnnotations(title) {
4005
4044
  function registerSerpIntelligenceCaptureTools(server, executor) {
4006
4045
  server.registerTool("capture_serp_snapshot", {
4007
4046
  title: "SERP Intelligence Snapshot",
4008
- description: "Capture a structured SERP Intelligence Google snapshot through POST /serp-intelligence/capture, the same product capture path used by Phoenix. Split query from location and infer gl/hl. Routing is automatic \u2014 leave proxyMode unset. Set debug true when investigating location evidence, proxy behavior, CAPTCHA, or capture reliability.",
4047
+ description: "Capture a structured SERP Intelligence Google snapshot (the product capture path used by Phoenix). Split query from location; leave proxyMode unset.",
4009
4048
  inputSchema: CaptureSerpSnapshotInputSchema,
4010
4049
  outputSchema: CaptureSerpSnapshotOutputSchema,
4011
4050
  annotations: liveWebToolAnnotations("SERP Intelligence Snapshot")
4012
4051
  }, async (input) => formatCaptureSerpSnapshot(await executor.captureSerpSnapshot(input), input));
4013
4052
  server.registerTool("capture_serp_page_snapshots", {
4014
4053
  title: "SERP Intelligence Page Snapshots",
4015
- description: "Capture public ranking-page evidence through POST /serp-intelligence/page-snapshots, the same product page snapshot path used by Phoenix. Provide urls for simple captures or targets when preserving organic, AI citation, local-pack, configured target, or site-subject source metadata. Private IPs, localhost, file URLs, and internal URLs are rejected by the service. Use timeoutMs for slow pages and debug true for sanitized proxy/browser diagnostics.",
4054
+ description: "Capture public ranking-page evidence as SERP Intelligence page snapshots (the product path used by Phoenix). Provide urls, or targets to preserve source metadata. Private IPs, localhost, file, and internal URLs are rejected.",
4016
4055
  inputSchema: CaptureSerpPageSnapshotsInputSchema,
4017
4056
  outputSchema: CaptureSerpPageSnapshotsOutputSchema,
4018
4057
  annotations: liveWebToolAnnotations("SERP Intelligence Page Snapshots")
@@ -4073,203 +4112,217 @@ function registerPaaExtractorMcpTools(server, executor, options = {}) {
4073
4112
  if (savesReports) registerSavedReportResources(server);
4074
4113
  server.registerTool("harvest_paa", {
4075
4114
  title: "Google PAA + SERP Harvest",
4076
- description: withReportNote('Best default tool for Google search research. Extracts People Also Ask questions plus answers/source URLs, organic SERP, local pack when present, entity IDs (CID/GCID/KG MID), and AI Overview. Infer the user language: split topic from location (e.g. "best hvac company in Denver CO" => query "best hvac company", location "Denver, CO", gl "us", hl "en"). Routing is automatic \u2014 leave proxyMode unset. If a deep harvest exceeds the time budget it returns the questions gathered so far (partial), billed per returned question. Use maxQuestions 30 normally, 100-200 for "full", "deep", "all", or comprehensive research. Deep harvests above 100 questions can run for several minutes with no interim progress \u2014 warn the user before starting one and keep maxQuestions at or below 100 unless they explicitly want a deep harvest. Credits are charged by extracted question; unused request hold is refunded.'),
4115
+ description: withReportNote("Best default tool for Google search research: People Also Ask questions with answers/sources, organic SERP, local pack, entity IDs, and AI Overview. Split topic from location; leave proxyMode unset. Warn the user before maxQuestions above 100 \u2014 deep harvests can run several minutes with no interim progress, billed per extracted question."),
4077
4116
  inputSchema: HarvestPaaInputSchema,
4078
4117
  outputSchema: HarvestPaaOutputSchema,
4079
4118
  annotations: liveWebToolAnnotations("Google PAA + SERP Harvest")
4080
4119
  }, async (input) => formatHarvestPaa(await executor.harvestPaa(input), input));
4081
4120
  server.registerTool("search_serp", {
4082
4121
  title: "Google SERP Lookup",
4083
- description: withReportNote("Fast Google SERP lookup without PAA expansion. Use when the user asks for rankings, organic results, local pack, quick SERP, or positions. Split topic from location and infer gl/hl from the user request. Routing is automatic \u2014 leave proxyMode unset; set location only to force local-pack targeting."),
4122
+ description: withReportNote("Fast Google SERP lookup without PAA expansion \u2014 rankings, organic results, local pack, positions. Split topic from location; leave proxyMode unset."),
4084
4123
  inputSchema: SearchSerpInputSchema,
4085
4124
  outputSchema: SearchSerpOutputSchema,
4086
4125
  annotations: liveWebToolAnnotations("Google SERP Lookup")
4087
4126
  }, async (input) => formatSearchSerp(await executor.searchSerp(input), input));
4088
4127
  server.registerTool("extract_url", {
4089
4128
  title: "Single URL Extract",
4090
- description: withReportNote("Extract structured data from one public URL when the user provides one page, asks to inspect/scrape a page, or needs page content, schema, headings, metadata, screenshots, branding, or media assets. Returns structured page fields plus artifact handles for saved reports/screenshots/media when requested. Set depositToVault:true to also save the full page into the user's MCP Memory vault server-side (the full body is NOT returned to chat). Use map_site_urls before extracting a site inventory; use extract_site for multi-page crawling."),
4129
+ description: withReportNote("Extract structured data from one public URL: content, schema, headings, metadata, screenshots, branding, or media assets. Set depositToVault:true to save the full page into the user's MCP Memory vault server-side (not returned to chat)."),
4091
4130
  inputSchema: ExtractUrlInputSchema,
4092
4131
  outputSchema: ExtractUrlOutputSchema,
4093
4132
  annotations: liveWebToolAnnotations("Single URL Extract")
4094
4133
  }, async (input) => formatExtractUrl(await executor.extractUrl(input), input));
4095
4134
  server.registerTool("map_site_urls", {
4096
4135
  title: "Site URL Map",
4097
- description: withReportNote("Map/crawl a public website when the user asks for a sitemap, URL inventory, broken-link scan, redirect scan, or crawl planning. Returns internal URLs with HTTP status and truncation metadata. Supports up to maxUrls=10000; maps over 500 URLs write the complete inventory to a local CSV file and return a summary plus the file path instead of the full list inline. Use this before extract_site when choosing pages for an audit; use extract_url for one known page."),
4136
+ description: withReportNote("Map/crawl a public website for a sitemap, URL inventory, or broken-link scan. Returns internal URLs with HTTP status; maps over 500 URLs are written to a local CSV file instead of inlined."),
4098
4137
  inputSchema: MapSiteUrlsInputSchema,
4099
4138
  outputSchema: MapSiteUrlsOutputSchema,
4100
4139
  annotations: liveWebToolAnnotations("Site URL Map")
4101
4140
  }, async (input) => formatMapSiteUrls(await executor.mapSiteUrls(input), input));
4102
4141
  server.registerTool("extract_site", {
4103
4142
  title: "Multi-Page Site Content Crawl",
4104
- description: withReportNote("Crawl a public website and return the page CONTENT across multiple pages (map + scrape). Returns per-page titles and Markdown content. Supports up to maxPages=10000; bulk crawls over 25 pages switch to folder mode: each page is saved as its own Markdown file in a local folder and the response returns a summary plus the folder path instead of inlining all content. This tool returns content only \u2014 for a technical SEO audit (issues, internal link graph, indexability, heading breakdown, image sizes/formats) use audit_site. Use map_site_urls first when URL selection matters; use extract_url for one page."),
4143
+ description: withReportNote("Crawl a public website and return page CONTENT (Markdown) across multiple pages. Bulk crawls over 25 pages are saved as per-page Markdown files in a local folder instead of inlined. Content only \u2014 for a technical SEO audit use audit_site instead."),
4105
4144
  inputSchema: ExtractSiteInputSchema,
4106
4145
  outputSchema: ExtractSiteOutputSchema,
4107
4146
  annotations: liveWebToolAnnotations("Multi-Page Site Content Crawl")
4108
4147
  }, async (input) => formatExtractSite(await executor.extractSite(input), input));
4109
4148
  server.registerTool("audit_site", {
4110
4149
  title: "Technical SEO Audit",
4111
- description: withReportNote("Run a full technical SEO audit (Screaming-Frog-style) on a public website. Crawls up to maxPages and produces a complete on-page + crawl analysis: per-page title/meta lengths, heading breakdown, indexability and canonical status, schema, an internal link graph (inlinks/orphans/crawl-depth), a link analysis (top internal pages by inlinks, top external domains by link count, broken/orphan counts), an issues report, and an image audit (byte size, format, over-100KB and legacy-format flags). Writes everything to a local folder (report.md, issues.json, pages.jsonl, links.jsonl, link-metrics.jsonl, link-report.md, links-summary.json, external-domains.json, images.jsonl) plus per-page content, and returns a headline summary plus the folder path. Use this when the user wants an audit or analysis; use extract_site when they just want page content."),
4150
+ description: withReportNote("Run a full technical SEO audit (Screaming-Frog-style) on a public website: on-page issues, internal link graph, indexability, heading/image analysis. Writes a folder of analysis files plus per-page content, and returns a summary plus the folder path. Use extract_site instead for plain page content."),
4112
4151
  inputSchema: AuditSiteInputSchema,
4113
4152
  outputSchema: AuditSiteOutputSchema,
4114
4153
  annotations: liveWebToolAnnotations("Technical SEO Audit")
4115
4154
  }, async (input) => formatAuditSite(await executor.auditSite(input), input));
4116
4155
  server.registerTool("youtube_harvest", {
4117
4156
  title: "YouTube Video Harvest",
4118
- description: withReportNote('Harvest YouTube video metadata when the user wants to find videos by topic, inspect a channel library, compare video angles, or get videoIds for later transcription. Use mode "search" for keyword/topic requests and mode "channel" for @handles, channel IDs, or channel URLs. Returns titles, views, durations, URLs, and videoIds for follow-up transcription. Use youtube_transcribe after selecting one video.'),
4157
+ description: withReportNote('Harvest YouTube video metadata by topic search or channel library. Use mode "search" for keyword/topic requests, mode "channel" for @handles/channel IDs/URLs. Returns titles, views, durations, and videoIds.'),
4119
4158
  inputSchema: YoutubeHarvestInputSchema,
4120
4159
  outputSchema: YoutubeHarvestOutputSchema,
4121
4160
  annotations: liveWebToolAnnotations("YouTube Video Harvest")
4122
4161
  }, async (input) => formatYoutubeHarvest(await executor.youtubeHarvest(input), input));
4123
4162
  server.registerTool("youtube_transcribe", {
4124
4163
  title: "YouTube Transcription",
4125
- description: withReportNote("Fetch and transcribe captions from a YouTube video. Use this when the user asks what was said in a YouTube video, wants claims/offers/lessons extracted from a video, or provides a YouTube URL for transcript work. Returns full transcript, timestamped chunks, word count, and resolvedInputs. Pass videoId from youtube_harvest results, or pass url when the user pasted a YouTube URL. Use youtube_harvest first when you need to discover videos by topic/channel."),
4164
+ description: withReportNote("Fetch and transcribe captions from a YouTube video. Pass videoId from youtube_harvest, or a url the user pasted. Returns full transcript, timestamped chunks, and word count."),
4126
4165
  inputSchema: YoutubeTranscribeInputSchema,
4127
4166
  outputSchema: YoutubeTranscribeOutputSchema,
4128
4167
  annotations: liveWebToolAnnotations("YouTube Transcription")
4129
4168
  }, async (input) => formatYoutubeTranscribe(await executor.youtubeTranscribe(input), input));
4130
4169
  server.registerTool("facebook_page_intel", {
4131
4170
  title: "Facebook Advertiser Ad Intel",
4132
- description: withReportNote("Harvest ads from a Facebook advertiser when the user wants current ad copy, creative angles, CTAs, video URLs, or competitive ad intelligence for one brand/page. Returns ad copy, headlines, CTAs, creative type, status, landing URLs, and direct ad video URLs ready for facebook_ad_transcribe. Accepts pageId, libraryId, or a brand/advertiser name as query. Use facebook_ad_search first when the advertiser handle is unknown. For normal public Facebook reels/posts/watch/share URLs, use facebook_video_transcribe instead."),
4171
+ description: withReportNote("Harvest ads from a Facebook advertiser: copy, creative angles, CTAs, and direct video URLs ready for facebook_ad_transcribe. Accepts pageId, libraryId, or a brand/advertiser name."),
4133
4172
  inputSchema: FacebookPageIntelInputSchema,
4134
4173
  outputSchema: FacebookPageIntelOutputSchema,
4135
4174
  annotations: liveWebToolAnnotations("Facebook Advertiser Ad Intel")
4136
4175
  }, async (input) => formatFacebookPageIntel(await executor.facebookPageIntel(input), input));
4137
4176
  server.registerTool("facebook_ad_search", {
4138
4177
  title: "Facebook Ad Library Search",
4139
- description: withReportNote("Search Facebook Ad Library when the user wants to find advertisers by brand, competitor, niche, or keyword. Returns advertisers with ad counts and library IDs. Use this to discover competitor/page handles, then pass libraryId or pageId to facebook_page_intel for ad details."),
4178
+ description: withReportNote("Search Facebook Ad Library to find advertisers by brand, competitor, niche, or keyword. Returns advertisers with ad counts and library IDs."),
4140
4179
  inputSchema: FacebookAdSearchInputSchema,
4141
4180
  outputSchema: FacebookAdSearchOutputSchema,
4142
4181
  annotations: liveWebToolAnnotations("Facebook Ad Library Search")
4143
4182
  }, async (input) => formatFacebookAdSearch(await executor.facebookAdSearch(input), input));
4144
4183
  server.registerTool("reddit_thread", {
4145
4184
  title: "Reddit Thread + Comments",
4146
- description: withReportNote("Capture a Reddit post and its comment tree from any reddit.com thread URL. Use this when the user wants Reddit comments, opinions, discussion, or audience voice from a specific thread (find threads first with search_serp, which surfaces reddit.com/comments links). Returns the post title, author, score, body, and a list of comments with author, score, nesting depth, and text. Handles Reddit's bot protection automatically (fetches via old.reddit through a residential proxy with retries); pass maxComments to cap the list."),
4185
+ description: withReportNote("Capture a Reddit post and its comment tree from a reddit.com thread URL \u2014 comments, opinions, audience voice. Handles Reddit's bot protection automatically; pass maxComments to cap the list."),
4147
4186
  inputSchema: RedditThreadInputSchema,
4148
4187
  outputSchema: RedditThreadOutputSchema,
4149
4188
  annotations: liveWebToolAnnotations("Reddit Thread + Comments")
4150
4189
  }, async (input) => formatRedditThread(await executor.redditThread(input), input));
4190
+ server.registerTool("video_frame_analysis", {
4191
+ title: "Video Breakdown (frame-by-frame + transcript)",
4192
+ description: "Produce a deep frame-by-frame + transcript breakdown of a video \u2014 pacing, hook, visual style, and how to replicate it. Pass a DIRECT video file URL (.mp4/.webm/.mov), not a page URL. Runs asynchronously and costs a flat $1 (refunded on failure): returns a runId immediately; poll video_frame_analysis_status until done.",
4193
+ inputSchema: VideoFrameAnalysisInputSchema,
4194
+ outputSchema: VideoFrameAnalysisOutputSchema,
4195
+ annotations: { title: "Video Breakdown", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true }
4196
+ }, async (input) => executor.videoFrameAnalysis(input));
4197
+ server.registerTool("video_frame_analysis_status", {
4198
+ title: "Video Breakdown Status",
4199
+ description: 'Check progress of a video breakdown started with video_frame_analysis, using its runId. Free to call. When status is "done" it returns the full report and vault path; stop polling on "done" or "failed".',
4200
+ inputSchema: VideoFrameAnalysisStatusInputSchema,
4201
+ outputSchema: VideoFrameAnalysisStatusOutputSchema,
4202
+ annotations: { title: "Video Breakdown Status", readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }
4203
+ }, async (input) => executor.videoFrameAnalysisStatus(input));
4151
4204
  server.registerTool("facebook_ad_transcribe", {
4152
4205
  title: "Facebook Ad Transcription",
4153
- description: "Transcribe audio from a Facebook ad video CDN URL. Use this when facebook_page_intel returned a direct videoUrl and the user asks what the ad says, what claims it makes, or wants ad-message extraction. Returns full transcript, timestamped chunks, word count, and resolvedInputs. Use only with the direct videoUrl value from facebook_page_intel results; do not pass public Facebook post/reel/share URLs. Use facebook_video_transcribe for organic Facebook URLs, and facebook_page_intel first when you only have a brand/page/ad library handle.",
4206
+ description: "Transcribe audio from a Facebook ad video CDN URL returned by facebook_page_intel. Use only that direct videoUrl value \u2014 do not pass public Facebook post/reel/share URLs (use facebook_video_transcribe for those).",
4154
4207
  inputSchema: FacebookAdTranscribeInputSchema,
4155
4208
  outputSchema: FacebookAdTranscribeOutputSchema,
4156
4209
  annotations: liveWebToolAnnotations("Facebook Ad Transcription")
4157
4210
  }, async (input) => formatFacebookAdTranscribe(await executor.facebookAdTranscribe(input), input));
4158
4211
  server.registerTool("google_ads_search", {
4159
4212
  title: "Google Ads Transparency Search",
4160
- description: withReportNote("Search the Google Ads Transparency Center to find advertisers running Google ads (Search, Display, YouTube) by domain or brand/advertiser name. Pass a domain like getviktor.com to see every advertiser account pointing ads at that site, or an advertiser name. Returns advertisers with their advertiser ID and an approximate ad count. Use this to discover an advertiserId, then pass it (or the domain) to google_ads_page_intel for the actual ad creatives."),
4213
+ description: withReportNote("Search the Google Ads Transparency Center to find advertisers by domain or brand name. Returns advertisers with advertiser ID and approximate ad count, to pass to google_ads_page_intel."),
4161
4214
  inputSchema: GoogleAdsSearchInputSchema,
4162
4215
  outputSchema: GoogleAdsSearchOutputSchema,
4163
4216
  annotations: liveWebToolAnnotations("Google Ads Transparency Search")
4164
4217
  }, async (input) => formatGoogleAdsSearch(await executor.googleAdsSearch(input), input));
4165
4218
  server.registerTool("google_ads_page_intel", {
4166
4219
  title: "Google Ads Advertiser Intel",
4167
- description: withReportNote("Harvest an advertiser's ads from the Google Ads Transparency Center when the user wants a competitor's Google/YouTube ad creatives, copy angles, image URLs, or video ads. Accepts an advertiserId (from google_ads_search) or a domain directly. Returns each creative's format (text/image/video), image URLs, landing info, a detail URL, and \u2014 for video ads \u2014 the YouTube video ID and/or a direct video URL ready for transcription. Use google_ads_search first when you only have a brand name. Transcribe video ads with google_ads_transcribe (video URL) or youtube_transcribe (YouTube ID)."),
4220
+ description: withReportNote("Harvest an advertiser's ad creatives from the Google Ads Transparency Center: format, image URLs, and \u2014 for video ads \u2014 a YouTube video ID or direct video URL. Accepts advertiserId (from google_ads_search) or a domain."),
4168
4221
  inputSchema: GoogleAdsPageIntelInputSchema,
4169
4222
  outputSchema: GoogleAdsPageIntelOutputSchema,
4170
4223
  annotations: liveWebToolAnnotations("Google Ads Advertiser Intel")
4171
4224
  }, async (input) => formatGoogleAdsPageIntel(await executor.googleAdsPageIntel(input), input));
4172
4225
  server.registerTool("google_ads_transcribe", {
4173
4226
  title: "Google Ad Video Transcription",
4174
- description: "Transcribe audio from a Google video ad. Use this when google_ads_page_intel returned a direct videoUrl (a googlevideo.com playback URL) for a video creative and the user asks what the ad says or wants its claims/messaging. Returns full transcript, timestamped chunks, and word count. For YouTube-hosted ads, pass the returned youtubeVideoId to youtube_transcribe instead; run google_ads_page_intel first when you only have an advertiser/domain.",
4227
+ description: "Transcribe audio from a Google video ad's direct videoUrl (a googlevideo.com playback URL) returned by google_ads_page_intel. For YouTube-hosted ads, use youtube_transcribe with the returned youtubeVideoId instead.",
4175
4228
  inputSchema: GoogleAdsTranscribeInputSchema,
4176
4229
  outputSchema: GoogleAdsTranscribeOutputSchema,
4177
4230
  annotations: liveWebToolAnnotations("Google Ad Video Transcription")
4178
4231
  }, async (input) => formatGoogleAdsTranscribe(await executor.googleAdsTranscribe(input), input));
4179
4232
  server.registerTool("facebook_video_transcribe", {
4180
4233
  title: "Facebook Organic Video Transcription",
4181
- description: withReportNote("Transcribe audio from an organic Facebook reel, video, watch, post, or share URL, including fb.watch links. Use this when the user pastes a normal Facebook video page URL and wants the transcript or downloadable MP4. Renders the Facebook page in a browser, selects the best matching public Facebook CDN MP4 URL from page state, then returns sourceUrl, resolved pageUrl, videoId, ownerName, selectedQuality, bitrate, videoDurationSec, extracted MP4 URL, full transcript, and timestamped chunks."),
4234
+ description: withReportNote("Transcribe audio from an organic Facebook reel/video/post/share URL (including fb.watch). Renders the page, selects the best public CDN MP4, and returns the transcript plus resolved video metadata."),
4182
4235
  inputSchema: FacebookVideoTranscribeInputSchema,
4183
4236
  outputSchema: FacebookVideoTranscribeOutputSchema,
4184
4237
  annotations: liveWebToolAnnotations("Facebook Organic Video Transcription")
4185
4238
  }, async (input) => formatFacebookVideoTranscribe(await executor.facebookVideoTranscribe(input), input));
4186
4239
  server.registerTool("instagram_profile_content", {
4187
4240
  title: "Instagram Profile Content Discovery",
4188
- description: withReportNote("Discover Instagram profile grid content links for a handle or profile URL. Use this when the user wants a person or brand account content inventory before selecting posts/reels to download. Returns profile stats, collected post/reel/tv URLs, shortcodes, type counts, browser details, pagination attempts, stop reason, and limitations."),
4241
+ description: withReportNote("Discover Instagram profile grid content links (posts/reels/tv) for a handle or profile URL, for later selection with instagram_media_download. Returns profile stats and collected URLs."),
4189
4242
  inputSchema: InstagramProfileContentInputSchema,
4190
4243
  outputSchema: InstagramProfileContentOutputSchema,
4191
4244
  annotations: liveWebToolAnnotations("Instagram Profile Content Discovery")
4192
4245
  }, async (input) => formatInstagramProfileContent(await executor.instagramProfileContent(input), input));
4193
4246
  server.registerTool("instagram_media_download", {
4194
4247
  title: "Instagram Post/Reel Media Download",
4195
- description: withReportNote("Extract and download media from one Instagram post, reel, or tv URL. Use after instagram_profile_content or when the user gives a specific Instagram URL and wants the image, caption/text, reel audio/video tracks, optional muxed MP4, or optional transcript. Reels commonly expose separate video-only and audio-only MP4 tracks; this tool selects the best video and audio tracks and attempts muxing when ffmpeg is available."),
4248
+ description: withReportNote("Extract and download media from one Instagram post, reel, or tv URL \u2014 image, caption, video/audio tracks, optional muxed MP4, or transcript. Selects the best video/audio track pair and muxes when ffmpeg is available."),
4196
4249
  inputSchema: InstagramMediaDownloadInputSchema,
4197
4250
  outputSchema: InstagramMediaDownloadOutputSchema,
4198
4251
  annotations: liveWebToolAnnotations("Instagram Post/Reel Media Download")
4199
4252
  }, async (input) => formatInstagramMediaDownload(await executor.instagramMediaDownload(input), input));
4200
4253
  server.registerTool("maps_place_intel", {
4201
4254
  title: "Google Maps Business Profile Details",
4202
- description: withReportNote('Extract Google Maps business intelligence for one known/named business: rating, review count, category, address, phone, website, hours, booking URL, review histogram, review topics, about attributes, entity IDs, and optional review cards. Do not use this for category searches, local market prospect lists, or requests for multiple GMB/GBP profiles; use maps_search first for those. Split business name from location (e.g. "Elite Roofing Denver CO" => businessName "Elite Roofing", location "Denver, CO"). Pass includeReviews true when the user asks for reviews/customer pain.'),
4255
+ description: withReportNote("Extract Google Maps business intelligence for one known/named business: rating, reviews, category, address, phone, hours, entity IDs. Not for category searches or multi-business prospect lists \u2014 use maps_search for those. Split business name from location."),
4203
4256
  inputSchema: MapsPlaceIntelInputSchema,
4204
4257
  outputSchema: MapsPlaceIntelOutputSchema,
4205
4258
  annotations: liveWebToolAnnotations("Google Maps Business Profile Details")
4206
4259
  }, async (input) => formatMapsPlaceIntel(await executor.mapsPlaceIntel(input), input));
4207
4260
  server.registerTool("maps_search", {
4208
4261
  title: "Google Maps Business Search",
4209
- description: withReportNote('Search Google Maps for multiple businesses/profiles by category, niche, keyword, or local market. Use this when the user asks for several Google Business Profiles, GMBs, GBPs, leads, prospects, competitors, or "more than the 3-pack." Routing is automatic and location-aware \u2014 leave proxyMode unset; pass proxyZip only to force a specific ZIP. Returns up to 50 candidates with names, place URLs, CIDs when available, ratings, review counts, profile metadata, and sanitized attempt telemetry. Default maxResults is 10; maximum is 50. Use maps_place_intel afterward only when a selected business needs full details and reviews.'),
4262
+ description: withReportNote("Search Google Maps for multiple businesses by category, niche, or local market \u2014 leads, prospects, competitors, or beyond the 3-pack. Leave proxyMode unset. Returns up to 50 candidates (default 10) with names, place URLs, CIDs, ratings."),
4210
4263
  inputSchema: MapsSearchInputSchema,
4211
4264
  outputSchema: MapsSearchOutputSchema,
4212
4265
  annotations: liveWebToolAnnotations("Google Maps Business Search")
4213
4266
  }, async (input) => formatMapsSearch(await executor.mapsSearch(input), input));
4214
4267
  server.registerTool("directory_workflow", {
4215
4268
  title: "Directory Workflow: Markets + Maps",
4216
- description: withReportNote('Build directory/prospecting datasets by selecting US city markets from the free Census Population Estimates city/place dataset, optionally joining configured US ZIPS/Lead Magician ZIP groups, then running Google Maps business searches for each city in parallel. Use this when the user wants "all cities over 100k population in a state", "build a directory CSV", "find markets then get Maps data", or similar location-database + Maps workflows. Set minPopulation, state, query, maxResultsPerCity, and concurrency. Routing is automatic per city. Saved CSV rows include source_location, result_position, business_name, review_stars, review_count, category, address, phone, hours_status, website_url, directions_url, place_url, cid, cid_decimal, city population, and ZIP groups. Structured city results include sanitized attempt telemetry. Use maps_place_intel only when a selected profile needs deeper review topics, profile review count confirmation, or review cards. For local Lead Magician ZIP enrichment, set MCP_SCRAPER_USZIPS_CSV_PATH on the API server or pass usZipsCsvPath only in local/test mode.'),
4269
+ description: withReportNote('Build directory/prospecting datasets: selects US city markets from Census population data, optionally joins configured ZIP groups, then runs Google Maps business searches per city in parallel. Use for "all cities over 100k population in a state" or market+Maps workflows. Saves a CSV of results per city. For ZIP enrichment, set MCP_SCRAPER_USZIPS_CSV_PATH on the server, or pass usZipsCsvPath in local/test mode.'),
4217
4270
  inputSchema: DirectoryWorkflowInputSchema,
4218
4271
  outputSchema: DirectoryWorkflowOutputSchema,
4219
4272
  annotations: liveWebToolAnnotations("Directory Workflow: Markets + Maps")
4220
4273
  }, async (input) => formatDirectoryWorkflow(await executor.directoryWorkflow(input), input));
4221
4274
  server.registerTool("workflow_list", {
4222
4275
  title: "Workflow Catalog",
4223
- description: "List MCP Scraper higher-level workflows and AI-facing recipes. Use this when the user asks what MCP Scraper can do beyond single tools, or asks for market analysis, ICP research, forum/review acquisition, full brand design briefings, CRO audits, competitive positioning, content gap briefs, or AI search visibility audits. Returns runnable workflow ids plus recipe guidance for the best tool chain.",
4276
+ description: "List MCP Scraper higher-level workflows and recipes \u2014 market analysis, ICP research, CRO audits, competitive positioning, content gap briefs, AI search visibility, and more. Returns runnable workflow ids plus tool-chain guidance.",
4224
4277
  inputSchema: WorkflowListInputSchema,
4225
4278
  outputSchema: WorkflowListOutputSchema,
4226
4279
  annotations: localPlanningToolAnnotations("Workflow Catalog")
4227
4280
  }, async (input) => formatWorkflowList(await executor.workflowList(input), input));
4228
4281
  server.registerTool("workflow_suggest", {
4229
4282
  title: "Workflow Intent Router",
4230
- description: 'Route a high-level business or research goal to the right MCP Scraper workflow/tool chain. Use before running work when the user says things like "do market analysis", "research my ICP", "acquire forum and review language", "build a brand design brief", "run a CRO audit", "compare competitors", "make a content gap brief", or "audit AI search visibility". This tool does not spend credits; it tells the AI exactly which workflow/tool chain to run next.',
4283
+ description: "Route a high-level business/research goal (market analysis, ICP research, CRO audit, competitor comparison, content gap brief, AI search visibility, etc) to the right MCP Scraper workflow/tool chain. Free; tells you what to run next.",
4231
4284
  inputSchema: WorkflowSuggestInputSchema,
4232
4285
  outputSchema: WorkflowSuggestOutputSchema,
4233
4286
  annotations: localPlanningToolAnnotations("Workflow Intent Router")
4234
4287
  }, async (input) => formatWorkflowSuggest(input));
4235
4288
  server.registerTool("workflow_run", {
4236
4289
  title: "Run Workflow",
4237
- description: withReportNote("Start a higher-level MCP Scraper workflow. Use after workflow_suggest or workflow_list. Runnable workflow ids: directory, agent-packet, local-competitive-audit, map-comparison, serp-comparison, paa-expansion-brief, ai-overview-language. This is the main MCP tool for market analysis, ICP evidence packets, local competitive audits, Maps/SERP comparisons, content gap briefs, and AI Overview language guidance. Stepwise workflows (e.g. agent-packet) run ONE leg per call and return runId, the step output, and nextStep \u2014 when nextStep is present, call workflow_step with the runId to run the next leg, and keep calling it until done is true. This keeps each call short instead of one long blocking run, so report each step result to the user as it arrives."),
4290
+ description: withReportNote("Start a higher-level MCP Scraper workflow (directory, agent-packet, local-competitive-audit, map-comparison, serp-comparison, paa-expansion-brief, ai-overview-language). Use after workflow_suggest or workflow_list. Stepwise workflows return runId + nextStep \u2014 call workflow_step with the runId until done is true."),
4238
4291
  inputSchema: WorkflowRunInputSchema,
4239
4292
  outputSchema: WorkflowRunOutputSchema,
4240
4293
  annotations: liveWebToolAnnotations("Run Workflow")
4241
4294
  }, async (input) => formatWorkflowRun(await executor.workflowRun(input), input));
4242
4295
  server.registerTool("workflow_step", {
4243
4296
  title: "Advance Workflow Step",
4244
- description: withReportNote("Run the next leg of a stepwise MCP Scraper workflow started with workflow_run. Pass the runId. Each call executes exactly one logical step (typically one live harvest), persists that step's artifacts, and returns the step output plus nextStep. Keep calling workflow_step with the same runId until done is true, reporting each step result to the user as it lands. Use this instead of waiting on one long workflow call \u2014 it avoids client timeouts on long multi-step jobs."),
4297
+ description: withReportNote("Run the next leg of a stepwise workflow started with workflow_run. Pass the runId; each call executes one step and returns its output plus nextStep. Keep calling with the same runId until done is true."),
4245
4298
  inputSchema: WorkflowStepInputSchema,
4246
4299
  outputSchema: WorkflowStepOutputSchema,
4247
4300
  annotations: liveWebToolAnnotations("Advance Workflow Step")
4248
4301
  }, async (input) => formatWorkflowStep(await executor.workflowStep(input), input));
4249
4302
  server.registerTool("workflow_status", {
4250
4303
  title: "Workflow Status",
4251
- description: "Fetch a hosted workflow run by id and list its current status and artifacts. Use when a workflow may still be running, when the model needs to re-open a run, inspect artifact ids, recover from a long workflow, or decide whether to call workflow_step or workflow_artifact_read next. Use only a runId returned by workflow_run/workflow_step/workflow_status; do not construct one yourself.",
4304
+ description: "Fetch a hosted workflow run by id and list its current status and artifacts, to re-open a run or recover artifact ids. Use only a runId returned by workflow_run/workflow_step/workflow_status.",
4252
4305
  inputSchema: WorkflowStatusInputSchema,
4253
4306
  outputSchema: WorkflowStatusOutputSchema,
4254
4307
  annotations: liveWebToolAnnotations("Workflow Status")
4255
4308
  }, async (input) => formatWorkflowStatus(await executor.workflowStatus(input), input));
4256
4309
  server.registerTool("workflow_artifact_read", {
4257
4310
  title: "Read Workflow Artifact",
4258
- description: "Read a workflow artifact back into MCP context by run id and artifact id. Use this before writing final deliverables so the answer is grounded in generated evidence.json, CSVs, Markdown briefs, reports, and task files instead of memory. Use workflow_status first when artifact ids are unknown. Use only artifactId values returned by workflow_run/workflow_step/workflow_status; do not construct one yourself. Use maxBytes to limit large CSV/JSON artifacts.",
4311
+ description: "Read a workflow artifact back into context by run id and artifact id, so final deliverables are grounded in generated evidence rather than memory. Use workflow_status first when artifact ids are unknown. Use maxBytes to limit large artifacts.",
4259
4312
  inputSchema: WorkflowArtifactReadInputSchema,
4260
4313
  outputSchema: WorkflowArtifactReadOutputSchema,
4261
4314
  annotations: liveWebToolAnnotations("Read Workflow Artifact")
4262
4315
  }, async (input) => formatWorkflowArtifactRead(await executor.workflowArtifactRead(input), input));
4263
4316
  server.registerTool("rank_tracker_workflow", {
4264
4317
  title: "Rank Tracker Blueprint Builder",
4265
- description: "Generate a build-ready database, cron/heartbeat, ingestion, metrics, and AI implementation prompt for a rank tracker powered by MCP Scraper. Supports Maps rankings through directory_workflow/maps_search, organic rankings through search_serp, AI Overview citation tracking, and People Also Ask source presence tracking. This tool is local planning only; it does not call the web or spend credits.",
4318
+ description: "Generate a build-ready database schema, cron plan, and implementation prompt for a rank tracker powered by MCP Scraper (Maps, organic, AI Overview, or PAA tracking). Local planning only \u2014 does not call the web or spend credits.",
4266
4319
  inputSchema: RankTrackerBlueprintInputSchema,
4267
4320
  outputSchema: RankTrackerBlueprintOutputSchema,
4268
4321
  annotations: localPlanningToolAnnotations("Rank Tracker Blueprint Builder")
4269
4322
  }, async (input) => buildRankTrackerBlueprint(input));
4270
4323
  server.registerTool("credits_info", {
4271
4324
  title: "MCP Scraper Credits & Costs",
4272
- description: "Answer questions about MCP Scraper credits, usage limits, and concurrency upgrades: current credit balance, what a specific tool/action costs, the full cost table, current concurrency limit, the extra-slot price, billing URL, and the terminal checkout command. Does not expose payment methods or credit card information.",
4325
+ description: "Answer questions about MCP Scraper credits, usage limits, and concurrency upgrades \u2014 balance, tool costs, concurrency limits, billing URL. Does not expose payment methods or card information.",
4273
4326
  inputSchema: CreditsInfoInputSchema,
4274
4327
  outputSchema: CreditsInfoOutputSchema,
4275
4328
  annotations: {
@@ -4489,6 +4542,12 @@ var HttpMcpToolExecutor = class {
4489
4542
  redditThread(input) {
4490
4543
  return this.call("/reddit/thread", input, this.httpTimeoutOverrideMs ?? 24e4);
4491
4544
  }
4545
+ videoFrameAnalysis(input) {
4546
+ return this.call("/video/analyze", input);
4547
+ }
4548
+ videoFrameAnalysisStatus(input) {
4549
+ return this.call("/video/status", input);
4550
+ }
4492
4551
  facebookAdTranscribe(input) {
4493
4552
  return this.call("/facebook/transcribe", input);
4494
4553
  }
@@ -4710,18 +4769,18 @@ var BrowserOpenInputSchema = {
4710
4769
  label: z2.string().optional().describe("Optional human label for this session, shown in the watch console."),
4711
4770
  url: z2.string().url().optional().describe("Optional URL to navigate to immediately after opening."),
4712
4771
  profile: z2.string().optional().describe("Optional saved hosted profile name to load a logged-in session for a site."),
4713
- save_profile_changes: z2.boolean().optional().describe("Persist cookies and browser storage back to the named profile when the session is closed. Use this for profile setup or intentional auth refreshes; avoid parallel sessions writing to the same profile."),
4714
- timeout_seconds: z2.number().int().min(60).max(259200).optional().describe("How long the direct no-proxy browser session may live before auto-termination. Defaults to 600. The browser idles into a zero-cost standby between actions, so a longer timeout is cheap.")
4772
+ save_profile_changes: z2.boolean().optional().describe("Persist cookies/storage back to the named profile on close. Avoid parallel sessions writing to the same profile."),
4773
+ timeout_seconds: z2.number().int().min(60).max(259200).optional().describe("Session lifetime before auto-termination. Defaults to 600.")
4715
4774
  };
4716
4775
  var BrowserProfileConnectInputSchema = {
4717
- email: z2.string().optional().describe("Account email for the login being saved. Used to derive a stable, reusable profile name AND recorded as a note of who is connected. Does NOT import existing cookies \u2014 the user signs in fresh via the returned watch_url."),
4718
- profile: z2.string().optional().describe("Profile to add this login to. Omit to derive one from email. A single profile holds MANY site logins \u2014 pass the same profile name again with a different domain to stack another account (e.g. add claude.ai to a profile that already has chatgpt.com)."),
4719
- domain: z2.string().optional().describe("Site to log into, e.g. chatgpt.com, claude.ai, reddit.com. Defaults to chatgpt.com. Each domain is a separate login inside the profile."),
4720
- login_url: z2.string().url().optional().describe("Login page for the domain. Defaults to https://<domain>/ (https://chatgpt.com/ when domain is omitted)."),
4721
- url: z2.string().url().optional().describe("Deprecated alias for login_url. Use login_url."),
4722
- note: z2.string().optional().describe('Free-text note describing this login, e.g. "ChatGPT Plus, work account". Surfaced by browser_profile_list so you can see what the profile holds.'),
4776
+ email: z2.string().optional().describe("Account email for the login. Derives a stable profile name and is recorded as a note. Does NOT import existing cookies \u2014 the user signs in fresh."),
4777
+ profile: z2.string().optional().describe("Profile to add this login to. Omit to derive from email. A single profile holds MANY logins \u2014 pass the same name with a different domain to stack accounts."),
4778
+ domain: z2.string().optional().describe("Site to log into, e.g. chatgpt.com, claude.ai, reddit.com. Defaults to chatgpt.com."),
4779
+ login_url: z2.string().url().optional().describe("Login page for the domain. Defaults to https://<domain>/."),
4780
+ url: z2.string().url().optional().describe("Deprecated alias for login_url."),
4781
+ note: z2.string().optional().describe("Free-text note describing this login. Surfaced by browser_profile_list."),
4723
4782
  label: z2.string().optional().describe("Optional human label for this sign-in setup session."),
4724
- timeout_seconds: z2.number().int().min(60).max(259200).optional().describe("How long the sign-in setup session may live before auto-termination. Defaults to 600.")
4783
+ timeout_seconds: z2.number().int().min(60).max(259200).optional().describe("Sign-in session lifetime before auto-termination. Defaults to 600.")
4725
4784
  };
4726
4785
  var BrowserProfileListInputSchema = {
4727
4786
  profile: z2.string().optional().describe("Profile whose saved logins to list. Omit to derive from email."),
@@ -4730,7 +4789,7 @@ var BrowserProfileListInputSchema = {
4730
4789
  connection_id: z2.string().optional().describe("A specific login connection id returned by browser_profile_connect, to poll just that one.")
4731
4790
  };
4732
4791
  var BrowserSessionInputSchema = {
4733
- session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions. Use only a returned session_id; do not construct one yourself.")
4792
+ session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions.")
4734
4793
  };
4735
4794
  var BrowserLocateTargetSchema = z2.object({
4736
4795
  name: z2.string().optional().describe("Optional label for this target, echoed in the result."),
@@ -4742,94 +4801,94 @@ var BrowserLocateTargetSchema = z2.object({
4742
4801
  message: "target requires selector or text"
4743
4802
  });
4744
4803
  var BrowserLocateInputSchema = {
4745
- session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions. Use only a returned session_id; do not construct one yourself."),
4804
+ session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions."),
4746
4805
  targets: z2.array(BrowserLocateTargetSchema).min(1).max(20).describe("DOM targets to locate in the current viewport. Use selectors for exact elements, or text for visible text ranges.")
4747
4806
  };
4748
4807
  var BrowserGotoInputSchema = {
4749
- session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions. Use only a returned session_id; do not construct one yourself."),
4808
+ session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions."),
4750
4809
  url: z2.string().url().describe("URL to navigate the browser to.")
4751
4810
  };
4752
4811
  var BrowserClickInputSchema = {
4753
- session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions. Use only a returned session_id; do not construct one yourself."),
4812
+ session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions."),
4754
4813
  x: z2.number().describe("X coordinate to click, in screenshot pixels. Use only coordinates from the latest browser_screenshot, browser_read, or browser_locate result; do not guess."),
4755
4814
  y: z2.number().describe("Y coordinate to click, in screenshot pixels. Use only coordinates from the latest browser_screenshot, browser_read, or browser_locate result; do not guess."),
4756
4815
  button: z2.enum(["left", "right", "middle"]).default("left").describe("Mouse button."),
4757
4816
  num_clicks: z2.number().int().min(1).max(3).optional().describe("Number of clicks, e.g. 2 for double-click.")
4758
4817
  };
4759
4818
  var BrowserTypeInputSchema = {
4760
- session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions. Use only a returned session_id; do not construct one yourself."),
4819
+ session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions."),
4761
4820
  text: z2.string().describe("Text to type at the current focus. Click a field first to focus it."),
4762
4821
  delay: z2.number().int().min(0).max(500).optional().describe("Optional per-keystroke delay in ms for human-like typing.")
4763
4822
  };
4764
4823
  var BrowserScrollInputSchema = {
4765
- session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions. Use only a returned session_id; do not construct one yourself."),
4824
+ session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions."),
4766
4825
  delta_y: z2.number().default(5).describe("Vertical scroll in wheel units. Positive scrolls down, negative up."),
4767
4826
  delta_x: z2.number().default(0).describe("Horizontal scroll in wheel units."),
4768
4827
  x: z2.number().optional().describe("X position to scroll at. Defaults to screen center."),
4769
4828
  y: z2.number().optional().describe("Y position to scroll at. Defaults to screen center.")
4770
4829
  };
4771
4830
  var BrowserPressInputSchema = {
4772
- session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions. Use only a returned session_id; do not construct one yourself."),
4831
+ session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions."),
4773
4832
  keys: z2.array(z2.string()).min(1).describe('Keys or combinations to press, e.g. ["Return"], ["Ctrl+a"], ["Ctrl+Shift+Tab"].')
4774
4833
  };
4775
4834
  var BrowserReplayStopInputSchema = {
4776
- session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions. Use only a returned session_id; do not construct one yourself."),
4777
- replay_id: z2.string().describe("The replay id returned by browser_replay_start or browser_list_replays. Use only a returned replay_id; do not construct one yourself.")
4835
+ session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions."),
4836
+ replay_id: z2.string().describe("The replay id returned by browser_replay_start or browser_list_replays.")
4778
4837
  };
4779
4838
  var BrowserReplayDownloadInputSchema = {
4780
- session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions. Use only a returned session_id; do not construct one yourself."),
4781
- replay_id: z2.string().describe("The replay id returned by browser_replay_start or browser_list_replays. Use only a returned replay_id; do not construct one yourself."),
4839
+ session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions."),
4840
+ replay_id: z2.string().describe("The replay id returned by browser_replay_start or browser_list_replays."),
4782
4841
  filename: z2.string().optional().describe("Optional local MP4 filename. Defaults to a timestamped replay filename.")
4783
4842
  };
4784
4843
  var BrowserReplayAnnotationSchema = z2.object({
4785
- type: z2.enum(["box", "circle", "underline", "arrow", "label"]).default("box").describe("Annotation style to draw over the replay."),
4786
- start_seconds: z2.number().min(0).default(0).describe("When the annotation should appear in the replay."),
4787
- end_seconds: z2.number().min(0).optional().describe("When the annotation should disappear. Defaults to two seconds after start_seconds."),
4788
- left: z2.number().optional().describe("Target left edge in browser screenshot pixels. Use element.left from browser_screenshot/browser_read."),
4789
- top: z2.number().optional().describe("Target top edge in browser screenshot pixels. Use element.top from browser_screenshot/browser_read."),
4790
- width: z2.number().positive().optional().describe("Target width in browser screenshot pixels. Use element.width from browser_screenshot/browser_read."),
4791
- height: z2.number().positive().optional().describe("Target height in browser screenshot pixels. Use element.height from browser_screenshot/browser_read."),
4792
- x: z2.number().optional().describe("Point target x coordinate in browser screenshot pixels when no box is available."),
4793
- y: z2.number().optional().describe("Point target y coordinate in browser screenshot pixels when no box is available."),
4794
- from_x: z2.number().optional().describe("Arrow start x coordinate in browser screenshot pixels. Defaults near the target."),
4795
- from_y: z2.number().optional().describe("Arrow start y coordinate in browser screenshot pixels. Defaults near the target."),
4796
- to_x: z2.number().optional().describe("Arrow target x coordinate in browser screenshot pixels. Defaults to the target box center."),
4797
- to_y: z2.number().optional().describe("Arrow target y coordinate in browser screenshot pixels. Defaults to the target box center."),
4798
- label: z2.string().max(120).optional().describe("Optional text callout to render near the annotation."),
4799
- color: z2.string().regex(/^#?[0-9a-fA-F]{6}$/).optional().describe("Annotation color as hex, for example #ff3b30."),
4844
+ type: z2.enum(["box", "circle", "underline", "arrow", "label"]).default("box").describe("Annotation style."),
4845
+ start_seconds: z2.number().min(0).default(0).describe("When the annotation should appear."),
4846
+ end_seconds: z2.number().min(0).optional().describe("When it disappears. Defaults to 2s after start_seconds."),
4847
+ left: z2.number().optional().describe("Target left edge in screenshot pixels (element.left)."),
4848
+ top: z2.number().optional().describe("Target top edge in screenshot pixels (element.top)."),
4849
+ width: z2.number().positive().optional().describe("Target width in screenshot pixels (element.width)."),
4850
+ height: z2.number().positive().optional().describe("Target height in screenshot pixels (element.height)."),
4851
+ x: z2.number().optional().describe("Point target x coordinate when no box is available."),
4852
+ y: z2.number().optional().describe("Point target y coordinate when no box is available."),
4853
+ from_x: z2.number().optional().describe("Arrow start x coordinate. Defaults near the target."),
4854
+ from_y: z2.number().optional().describe("Arrow start y coordinate. Defaults near the target."),
4855
+ to_x: z2.number().optional().describe("Arrow end x coordinate. Defaults to the target box center."),
4856
+ to_y: z2.number().optional().describe("Arrow end y coordinate. Defaults to the target box center."),
4857
+ label: z2.string().max(120).optional().describe("Optional text callout."),
4858
+ color: z2.string().regex(/^#?[0-9a-fA-F]{6}$/).optional().describe("Annotation color as hex, e.g. #ff3b30."),
4800
4859
  thickness: z2.number().min(1).max(24).optional().describe("Stroke thickness in pixels. Defaults to 5.")
4801
4860
  });
4802
4861
  var BrowserReplayMarkInputSchema = {
4803
- session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions. Use only a returned session_id; do not construct one yourself. A replay must already be recording."),
4862
+ session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions. A replay must already be recording."),
4804
4863
  target: BrowserLocateTargetSchema.describe("The exact DOM element or text range to mark in the current viewport."),
4805
- type: z2.enum(["box", "circle", "underline", "arrow"]).default("box").describe("Annotation style to generate. Labels are included on the returned annotation when label is provided."),
4864
+ type: z2.enum(["box", "circle", "underline", "arrow"]).default("box").describe("Annotation style to generate."),
4806
4865
  label: z2.string().max(120).optional().describe("Optional callout text to render near the target."),
4807
- color: z2.string().regex(/^#?[0-9a-fA-F]{6}$/).optional().describe("Annotation color as hex, for example #ff3b30."),
4866
+ color: z2.string().regex(/^#?[0-9a-fA-F]{6}$/).optional().describe("Annotation color as hex, e.g. #ff3b30."),
4808
4867
  thickness: z2.number().min(1).max(24).optional().describe("Stroke thickness in pixels. Defaults to 5."),
4809
4868
  padding: z2.number().min(0).max(80).default(8).describe("Pixels to expand the DOM bounds so the highlight does not touch the text edge."),
4810
- start_offset_seconds: z2.number().min(-5).max(10).default(-0.25).describe("Offset from the current replay time. Negative values make the callout appear just before the mark action is captured."),
4811
- duration_seconds: z2.number().min(0.5).max(30).default(4).describe("How long the generated annotation should remain visible.")
4869
+ start_offset_seconds: z2.number().min(-5).max(10).default(-0.25).describe("Offset from the current replay time; negative appears just before the mark action."),
4870
+ duration_seconds: z2.number().min(0.5).max(30).default(4).describe("How long the annotation should remain visible.")
4812
4871
  };
4813
4872
  var BrowserReplayAnnotateInputSchema = {
4814
- session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions. Use only a returned session_id; do not construct one yourself."),
4815
- replay_id: z2.string().describe("The replay id returned by browser_replay_start or browser_list_replays. Use only a returned replay_id; do not construct one yourself."),
4816
- annotations: z2.array(BrowserReplayAnnotationSchema).min(1).max(50).describe("Timed overlay annotations to render on the replay. Prefer annotations returned by browser_replay_mark; otherwise use exact DOM bounds from browser_locate/browser_screenshot/browser_read."),
4817
- filename: z2.string().optional().describe("Optional output MP4 filename. Defaults to a timestamped annotated replay filename."),
4873
+ session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions."),
4874
+ replay_id: z2.string().describe("The replay id returned by browser_replay_start or browser_list_replays."),
4875
+ annotations: z2.array(BrowserReplayAnnotationSchema).min(1).max(50).describe("Timed overlay annotations. Prefer ones from browser_replay_mark; otherwise use exact DOM bounds from browser_locate."),
4876
+ filename: z2.string().optional().describe("Optional output MP4 filename. Defaults to a timestamped filename."),
4818
4877
  source_width: z2.number().positive().optional().describe("Width of the screenshot coordinate space used for annotations. Defaults to the replay video width."),
4819
- source_height: z2.number().positive().optional().describe("Height of the coordinate space used for annotations. When this is a page viewport height smaller than the replay video height, the annotator infers the browser chrome top offset."),
4820
- source_left_offset: z2.number().min(0).optional().describe("Optional explicit X offset from annotation coordinates to replay video coordinates. Usually omitted."),
4821
- source_top_offset: z2.number().min(0).optional().describe("Optional explicit Y offset from annotation coordinates to replay video coordinates. Usually omitted because browser chrome offset is inferred when source_height is a page viewport height.")
4878
+ source_height: z2.number().positive().optional().describe("Height of the annotation coordinate space; if smaller than the replay video height, the browser chrome offset is inferred."),
4879
+ source_left_offset: z2.number().min(0).optional().describe("Explicit X offset from annotation to replay video coordinates. Usually omitted."),
4880
+ source_top_offset: z2.number().min(0).optional().describe("Explicit Y offset from annotation to replay video coordinates. Usually omitted.")
4822
4881
  };
4823
4882
  var BrowserListInputSchema = {
4824
4883
  include_closed: z2.boolean().default(false).describe("Include closed sessions in the list.")
4825
4884
  };
4826
4885
  var BrowserCaptureFanoutInputSchema = {
4827
- session_id: z2.string().describe("The session id returned by browser_open or browser_list_sessions. The session must be on chatgpt.com or claude.ai and logged in through a saved hosted profile. Use only a returned session_id; do not construct one yourself."),
4828
- prompt: z2.string().optional().describe("Optional prompt to type into the chat composer and submit before capturing. Omit to passively capture the fan-out of a prompt the user just ran in the visible browser. The prompt must trigger web search for there to be a fan-out."),
4829
- wait_ms: z2.number().int().min(0).max(18e4).optional().describe("How long to wait for the answer stream to finish before parsing. Defaults to 90000 when a prompt is sent, 8000 for passive capture. Capture ends as soon as the answer stream finishes."),
4830
- first_party_domain: z2.string().optional().describe("The brand/site being researched, for example example.com. Sources on this domain are tagged First-party/vendor. Set this when the prompt is about a specific business."),
4831
- reset: z2.boolean().default(false).describe("Clear any previously buffered stream for this page before capturing. Use when re-running to avoid mixing turns."),
4832
- export: z2.boolean().default(false).describe("When true, write JSON, CSV, TSV exports (queries, citations, all sources, browsed-only sources, snippets, domains) and a self-contained HTML report to MCP_SCRAPER_OUTPUT_DIR/fanout, returning paths relative to MCP_SCRAPER_OUTPUT_DIR.")
4886
+ session_id: z2.string().describe("Session id from browser_open. Must be on chatgpt.com or claude.ai, logged in via a saved hosted profile."),
4887
+ prompt: z2.string().optional().describe("Optional prompt to type and submit before capturing. Omit to passively capture a prompt the user just ran. Must trigger web search to produce a fan-out."),
4888
+ wait_ms: z2.number().int().min(0).max(18e4).optional().describe("How long to wait for the answer stream to finish. Defaults to 90000 when a prompt is sent, 8000 for passive capture."),
4889
+ first_party_domain: z2.string().optional().describe("The brand/site being researched, e.g. example.com \u2014 sources on this domain are tagged First-party/vendor."),
4890
+ reset: z2.boolean().default(false).describe("Clear any previously buffered stream for this page before capturing."),
4891
+ export: z2.boolean().default(false).describe("Write JSON/CSV/TSV/HTML exports to MCP_SCRAPER_OUTPUT_DIR/fanout, returning relative paths.")
4833
4892
  };
4834
4893
  var FanoutSourceOutput = z2.object({
4835
4894
  url: z2.string(),
@@ -4853,10 +4912,10 @@ var BrowserCaptureFanoutOutputSchema = {
4853
4912
  title: z2.string(),
4854
4913
  rounds: z2.number().int().min(0)
4855
4914
  }),
4856
- queries: z2.array(z2.string()).describe("Every web-search sub-query the model issued, in capture order. Classify these by funnel stage and type yourself from the text."),
4857
- browsed_urls: z2.array(FanoutSourceOutput).describe("Every researched URL (cited and browsed-only), cited first."),
4858
- cited_urls: z2.array(FanoutSourceOutput).describe("The subset of researched URLs actually cited in the final answer."),
4859
- browsed_only: z2.array(FanoutSourceOutput).describe("Researched URLs the model pulled but did not cite."),
4915
+ queries: z2.array(z2.string()).describe("Every web-search sub-query issued, in capture order."),
4916
+ browsed_urls: z2.array(FanoutSourceOutput).describe("Every researched URL, cited first."),
4917
+ cited_urls: z2.array(FanoutSourceOutput).describe("Researched URLs cited in the final answer."),
4918
+ browsed_only: z2.array(FanoutSourceOutput).describe("Researched URLs pulled but not cited."),
4860
4919
  snippets: z2.array(z2.object({ url: z2.string(), domain: z2.string(), title: z2.string(), text: z2.string() })),
4861
4920
  counts: z2.object({
4862
4921
  subQueries: z2.number().int().min(0),
@@ -5459,7 +5518,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5459
5518
  "browser_profile_connect",
5460
5519
  {
5461
5520
  title: "Save a Site Login to a Profile",
5462
- description: `Save a logged-in browser session so this server can reuse a site the user is signed into (ChatGPT, Claude, Reddit, or any account-gated site). Returns an mcpscraper.dev watch_url \u2014 give it to the user, they sign in once, and the cookies are saved to a named profile for later browser_open calls. ONE profile holds MANY logins: call this again with the SAME profile and a DIFFERENT domain to stack another account (e.g. add claude.ai to a profile that already has chatgpt.com). Pass note to record what each login is. Side effects: opens a short-lived sign-in session and persists cookies to the profile; it does NOT import the user's existing browser cookies (they log in fresh). NOT for one-off scraping of public pages (use extract_url) and NOT a way to drive the browser (use browser_open). Sample asks: "save my ChatGPT login", "connect my Reddit account", "add my Claude login to the same profile". After the user signs in, poll browser_profile_list until the login reads AUTHENTICATED, then browser_open with the profile.`,
5521
+ description: "Save a logged-in browser session so this server can reuse a site the user is signed into (ChatGPT, Claude, Reddit, any account-gated site). Returns a watch_url; the user signs in fresh (existing browser cookies are NOT imported) and cookies save to a named profile. ONE profile holds MANY logins \u2014 call again with the same profile and a different domain to stack another account. NOT for one-off scraping (use extract_url) or driving the browser (use browser_open). After sign-in, poll browser_profile_list until AUTHENTICATED, then browser_open with the profile.",
5463
5522
  inputSchema: BrowserProfileConnectInputSchema,
5464
5523
  outputSchema: BrowserProfileConnectOutputSchema,
5465
5524
  annotations: annotations("Save a Site Login to a Profile")
@@ -5517,7 +5576,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5517
5576
  "browser_profile_list",
5518
5577
  {
5519
5578
  title: "List Saved Logins in a Profile",
5520
- description: `List every site login saved in a profile, each with its current auth status (NEEDS_AUTH / AUTHENTICATED), account email, and note. Use it to (1) see what a profile is connected to before opening a session, and (2) poll a just-saved login until it flips to AUTHENTICATED. Read-only, no cost. Pass profile (or email to derive it); narrow with domain or connection_id to poll a single login. Sample asks: "what's connected in my profile", "is my ChatGPT login ready yet", "which accounts are saved". Pairs with browser_profile_connect (which adds logins) and browser_open (which uses them).`,
5579
+ description: "List every site login saved in a profile with its auth status (NEEDS_AUTH/AUTHENTICATED), email, and note. Use to check what's connected, or to poll a just-saved login until AUTHENTICATED. Read-only, no cost. Pass profile (or email to derive it); narrow with domain or connection_id.",
5521
5580
  inputSchema: BrowserProfileListInputSchema,
5522
5581
  outputSchema: BrowserProfileListOutputSchema,
5523
5582
  annotations: annotations("List Saved Logins in a Profile", true)
@@ -5551,7 +5610,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5551
5610
  "browser_open",
5552
5611
  {
5553
5612
  title: "Open Browser Session",
5554
- description: "Open a direct no-proxy hosted browser session you can drive. Pass a saved profile name to load a session that is already logged into the sites saved in that profile (one profile can hold several logins). To set up or refresh a login first, use browser_profile_connect, then poll browser_profile_list until it reads AUTHENTICATED. Returns a session_id used by all other browser_* tools.",
5613
+ description: "Open a direct no-proxy hosted browser session you can drive. Pass a saved profile name to load a session already logged into that profile's sites (set one up first with browser_profile_connect). Returns a session_id used by all other browser_* tools.",
5555
5614
  inputSchema: BrowserOpenInputSchema,
5556
5615
  outputSchema: BrowserOpenOutputSchema,
5557
5616
  annotations: annotations("Open Browser Session")
@@ -5585,7 +5644,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5585
5644
  "browser_screenshot",
5586
5645
  {
5587
5646
  title: "See Page (Screenshot + Elements)",
5588
- description: "Capture what the browser currently shows. Returns a screenshot image PLUS a text snapshot listing interactive elements with their center x,y coordinates, the page url and title, and visible text. This is your primary way to perceive the page. Click elements by their listed x,y. If a Cloudflare/CAPTCHA challenge is visible, wait and screenshot again rather than clicking it.",
5647
+ description: "Capture what the browser currently shows: a screenshot plus a text snapshot of interactive elements with x,y coordinates, page url/title, and visible text. Primary way to perceive the page; click elements by their listed x,y. If a Cloudflare/CAPTCHA challenge is visible, wait and screenshot again rather than clicking it.",
5589
5648
  inputSchema: BrowserSessionInputSchema,
5590
5649
  outputSchema: BrowserScreenshotOutputSchema,
5591
5650
  annotations: annotations("See Page", true)
@@ -5617,7 +5676,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5617
5676
  "browser_read",
5618
5677
  {
5619
5678
  title: "Read Page Text + Elements",
5620
- description: "Return the page url, title, visible text, and the list of interactive elements (with x,y) without an image. Cheaper than browser_screenshot when you only need to read content or find a target element to click.",
5679
+ description: "Return the page url, title, visible text, and interactive elements (with x,y) without an image. Cheaper than browser_screenshot when you only need to read content or find a click target.",
5621
5680
  inputSchema: BrowserSessionInputSchema,
5622
5681
  outputSchema: BrowserReadOutputSchema,
5623
5682
  annotations: annotations("Read Page", true)
@@ -5641,7 +5700,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5641
5700
  "browser_locate",
5642
5701
  {
5643
5702
  title: "Locate DOM Targets",
5644
- description: "Locate exact visible DOM elements or text ranges in the current browser viewport and return left/top/width/height bounds in screenshot pixels. Use this before drawing annotations or when a callout must literally circle, box, underline, or point to a real element. Prefer CSS selectors for exact UI elements; use text when selector is unknown. When a replay is actively recording, the result includes replay_elapsed_seconds for timing.",
5703
+ description: "Locate exact visible DOM elements or text ranges and return left/top/width/height bounds in screenshot pixels. Use before drawing annotations that must circle, box, underline, or point to a real element. Prefer CSS selectors; use text when selector is unknown.",
5645
5704
  inputSchema: BrowserLocateInputSchema,
5646
5705
  outputSchema: BrowserLocateOutputSchema,
5647
5706
  annotations: annotations("Locate DOM Targets", true)
@@ -5666,7 +5725,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5666
5725
  "browser_goto",
5667
5726
  {
5668
5727
  title: "Navigate To URL",
5669
- description: "Navigate an existing browser session to a URL when the user asks you to go to another page or continue browsing in the same session. Use browser_open first if no session exists. Follow with browser_screenshot to see redirects, login walls, CAPTCHA/Cloudflare state, or the loaded page.",
5728
+ description: "Navigate an existing browser session to a URL. Use browser_open first if no session exists; follow with browser_screenshot to see the loaded page.",
5670
5729
  inputSchema: BrowserGotoInputSchema,
5671
5730
  outputSchema: BrowserActionOutputSchema,
5672
5731
  annotations: annotations("Navigate To URL")
@@ -5680,7 +5739,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5680
5739
  "browser_click",
5681
5740
  {
5682
5741
  title: "Click",
5683
- description: "Click a visible page target using screenshot pixel coordinates. Use this when the user asks you to press a button, open a menu, choose a result, or activate a visible UI element. Use x/y only from the latest browser_screenshot, browser_read, or browser_locate result; do not guess coordinates. Follow with browser_screenshot when the click may change the page.",
5742
+ description: "Click a visible page target using screenshot pixel coordinates. Use x/y only from the latest browser_screenshot, browser_read, or browser_locate result; do not guess coordinates.",
5684
5743
  inputSchema: BrowserClickInputSchema,
5685
5744
  outputSchema: BrowserActionOutputSchema,
5686
5745
  annotations: annotations("Click")
@@ -5699,7 +5758,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5699
5758
  "browser_type",
5700
5759
  {
5701
5760
  title: "Type Text",
5702
- description: 'Type text into the currently focused browser field. Use this when the user asks you to fill a search box, form field, login field, or editable text area. Click or Tab to the field first if focus is uncertain. Use browser_press with ["Return"] to submit, and browser_screenshot afterward when page state matters.',
5761
+ description: 'Type text into the currently focused browser field. Click or Tab to the field first if focus is uncertain. Use browser_press with ["Return"] to submit.',
5703
5762
  inputSchema: BrowserTypeInputSchema,
5704
5763
  outputSchema: BrowserActionOutputSchema,
5705
5764
  annotations: annotations("Type Text")
@@ -5713,7 +5772,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5713
5772
  "browser_scroll",
5714
5773
  {
5715
5774
  title: "Scroll",
5716
- description: "Scroll the page to reveal more content before reading, clicking, or locating elements. Positive delta_y scrolls down; negative delta_y scrolls up. Follow with browser_screenshot or browser_read to inspect newly revealed content.",
5775
+ description: "Scroll the page to reveal more content. Positive delta_y scrolls down; negative scrolls up.",
5717
5776
  inputSchema: BrowserScrollInputSchema,
5718
5777
  outputSchema: BrowserActionOutputSchema,
5719
5778
  annotations: annotations("Scroll")
@@ -5732,7 +5791,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5732
5791
  "browser_press",
5733
5792
  {
5734
5793
  title: "Press Keys",
5735
- description: 'Press keyboard keys or combinations in the active browser session. Use this for submit, Escape, Tab navigation, select-all, or keyboard shortcuts. Examples: ["Return"], ["Escape"], ["Tab"], ["Ctrl+a"], ["Ctrl+Shift+Tab"]. Use browser_type for text entry and browser_screenshot after keypresses that may change the page.',
5794
+ description: "Press keyboard keys or combinations in the active browser session \u2014 submit, Escape, Tab navigation, select-all, or shortcuts. Use browser_type for text entry.",
5736
5795
  inputSchema: BrowserPressInputSchema,
5737
5796
  outputSchema: BrowserActionOutputSchema,
5738
5797
  annotations: annotations("Press Keys")
@@ -5746,7 +5805,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5746
5805
  "browser_replay_start",
5747
5806
  {
5748
5807
  title: "Start Recording",
5749
- description: "Start recording an MP4 replay of the session. Returns replay_id, view_url when available, and a download_url. Use to capture a task for later review; stop with browser_replay_stop.",
5808
+ description: "Start recording an MP4 replay of the session. Returns replay_id and a download_url. Stop with browser_replay_stop.",
5750
5809
  inputSchema: BrowserSessionInputSchema,
5751
5810
  outputSchema: BrowserReplayStartOutputSchema,
5752
5811
  annotations: annotations("Start Recording")
@@ -5769,7 +5828,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5769
5828
  "browser_replay_stop",
5770
5829
  {
5771
5830
  title: "Stop Recording",
5772
- description: "Stop a replay recording and expose the final view_url and download_url. Use browser_replay_download to save the MP4 to the configured output directory.",
5831
+ description: "Stop a replay recording and expose its final view_url/download_url. Use browser_replay_download to save the MP4.",
5773
5832
  inputSchema: BrowserReplayStopInputSchema,
5774
5833
  outputSchema: BrowserReplayStopOutputSchema,
5775
5834
  annotations: annotations("Stop Recording")
@@ -5792,7 +5851,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5792
5851
  "browser_list_replays",
5793
5852
  {
5794
5853
  title: "List Replay Videos",
5795
- description: "List replay recordings for a browser session, including final view_url and authenticated download_url values when available.",
5854
+ description: "List replay recordings for a browser session, including view_url and download_url when available.",
5796
5855
  inputSchema: BrowserSessionInputSchema,
5797
5856
  outputSchema: BrowserListReplaysOutputSchema,
5798
5857
  annotations: annotations("List Replay Videos", true)
@@ -5814,7 +5873,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5814
5873
  "browser_replay_download",
5815
5874
  {
5816
5875
  title: "Download Replay MP4",
5817
- description: "Download a replay recording through MCP Scraper and save the MP4 under MCP_SCRAPER_OUTPUT_DIR/browser-replays. Use after browser_replay_stop or browser_list_replays.",
5876
+ description: "Download a replay recording and save the MP4 under MCP_SCRAPER_OUTPUT_DIR/browser-replays. Use after browser_replay_stop or browser_list_replays.",
5818
5877
  inputSchema: BrowserReplayDownloadInputSchema,
5819
5878
  outputSchema: BrowserReplayDownloadOutputSchema,
5820
5879
  annotations: annotations("Download Replay MP4")
@@ -5838,7 +5897,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5838
5897
  "browser_replay_mark",
5839
5898
  {
5840
5899
  title: "Mark Replay Annotation",
5841
- description: "While a replay is actively recording, locate one exact DOM target and return a ready-to-use annotation object with DOM bounds and replay-relative timing. Use this instead of guessing start_seconds or drawing rough rectangles. Workflow: start browser_replay_start, navigate until the target is visible and stable, call browser_replay_mark for each callout, then stop the replay and pass the returned annotations to browser_replay_annotate.",
5900
+ description: "While a replay is actively recording, locate one exact DOM target and return a ready-to-use annotation with DOM bounds and replay-relative timing, instead of guessing start_seconds or rectangles. Pass the returned annotations to browser_replay_annotate after stopping the replay.",
5842
5901
  inputSchema: BrowserReplayMarkInputSchema,
5843
5902
  outputSchema: BrowserReplayMarkOutputSchema,
5844
5903
  annotations: annotations("Mark Replay Annotation", true)
@@ -5888,7 +5947,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5888
5947
  "browser_replay_annotate",
5889
5948
  {
5890
5949
  title: "Annotate Replay MP4",
5891
- description: "Download a browser replay MP4, render visual annotations over it, and save a new annotated MP4 under MCP_SCRAPER_OUTPUT_DIR/browser-replays. Use this after browser_replay_stop when the user wants proof videos with circles, boxes, arrows, underlines, or labels. For accurate timing and placement, prefer annotations returned by browser_replay_mark while the replay is recording; otherwise use exact left/top/width/height bounds from browser_locate. If the replay video size differs from the screenshot coordinate space, pass source_width and source_height.",
5950
+ description: "Download a browser replay MP4, render visual annotations (circles/boxes/arrows/labels) over it, and save a new annotated MP4. Prefer annotations from browser_replay_mark for accurate timing; otherwise use exact bounds from browser_locate. Pass source_width/source_height if the replay video size differs from the screenshot coordinate space.",
5892
5951
  inputSchema: BrowserReplayAnnotateInputSchema,
5893
5952
  outputSchema: BrowserReplayAnnotateOutputSchema,
5894
5953
  annotations: annotations("Annotate Replay MP4")
@@ -5930,7 +5989,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5930
5989
  "browser_close",
5931
5990
  {
5932
5991
  title: "Close Browser Session",
5933
- description: "Close and release a browser session when the task is done, when the user asks to stop the browser, or when active browser billing should end. Use browser_list_sessions first if you need to recover the session_id.",
5992
+ description: "Close and release a browser session when the task is done, to end active browser billing. Use browser_list_sessions first to recover a session_id.",
5934
5993
  inputSchema: BrowserSessionInputSchema,
5935
5994
  outputSchema: BrowserCloseOutputSchema,
5936
5995
  annotations: { title: "Close Browser Session", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false }
@@ -5951,7 +6010,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5951
6010
  "browser_list_sessions",
5952
6011
  {
5953
6012
  title: "List Browser Sessions",
5954
- description: "List browser sessions and their status, with a watch_url for each. Use this to recover a session_id, find an active browser, or decide which session to close. Use browser_open to create a new session.",
6013
+ description: "List browser sessions and their status, with a watch_url for each. Use to recover a session_id or decide which session to close.",
5955
6014
  inputSchema: BrowserListInputSchema,
5956
6015
  outputSchema: BrowserListSessionsOutputSchema,
5957
6016
  annotations: annotations("List Browser Sessions", true)
@@ -5973,7 +6032,7 @@ function registerBrowserAgentMcpTools(server, opts) {
5973
6032
  "query_fanout_workflow",
5974
6033
  {
5975
6034
  title: "Capture AI Search Fan-Out",
5976
- description: `Capture the query fan-out behind a ChatGPT or Claude web-search answer for Answer Engine Optimization (AEO): the exact sub-queries the model issued, every researched URL split into cited vs browsed-only (with citation frequency and snippet), each source tagged by category (First-party/vendor, News/media, Reddit, Social/video, Encyclopedia, Review site, Docs, Blog), plus top sourced sites and citation order. Set export=true for durable JSON, CSV, TSV, and HTML artifacts; export paths are returned relative to MCP_SCRAPER_OUTPUT_DIR. This returns the raw structured data; YOU analyze it \u2014 classify each sub-query by funnel stage (Problem-aware, Solution-aware, Decision-aware, Retention) and type (BoFu, Branded, Comparison, How-to, Search operator), name the brands the model researched, and give AEO insights. Sample asks: "capture the fan-out for this ChatGPT answer", "what did Claude search and cite for best CRM", "show the sub-queries and sources behind this AI answer". WRITE NOTE: passing prompt submits a real message in the user's logged-in account (a new conversation turn) \u2014 only send when the user wants that; omit prompt to capture a prompt the user just ran. Setup, if not already connected or if the profile disconnected: call browser_profile_connect, give the user the watch_url, let them complete login, then poll browser_profile_list until status is AUTHENTICATED. After that, browser_open the saved direct no-proxy profile and go to chatgpt.com or claude.ai. Fan-out is captured only as it streams, so the session must be open when the prompt runs. NOT for Google AI Overview citations \u2014 use harvest_paa for those; this tool is ChatGPT and Claude only.`,
6035
+ description: "Capture the query fan-out behind a ChatGPT or Claude web-search answer for AEO: sub-queries issued, every researched URL split into cited vs browsed-only, and top sourced sites. Returns raw structured data for you to classify and analyze. Set export=true for JSON/CSV/TSV/HTML artifacts. WRITE NOTE: passing prompt submits a real message in the user's logged-in account \u2014 only send when the user wants that; omit it to capture a prompt the user just ran. The session must already be open on chatgpt.com or claude.ai (see browser_profile_connect) while the prompt streams. NOT for Google AI Overview \u2014 use harvest_paa for that.",
5977
6036
  inputSchema: BrowserCaptureFanoutInputSchema,
5978
6037
  outputSchema: BrowserCaptureFanoutOutputSchema,
5979
6038
  annotations: annotations("Capture AI Search Fan-Out")
@@ -6048,4 +6107,4 @@ export {
6048
6107
  exportFanout,
6049
6108
  registerBrowserAgentMcpTools
6050
6109
  };
6051
- //# sourceMappingURL=chunk-KPF64WST.js.map
6110
+ //# sourceMappingURL=chunk-E7BZFMWB.js.map