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.
- package/dist/bin/api-server.cjs +1558 -1312
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +3 -3
- package/dist/bin/mcp-scraper-cli.cjs +1 -1
- package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
- package/dist/bin/mcp-scraper-cli.js +1 -1
- package/dist/bin/mcp-scraper-install.cjs +1 -1
- package/dist/bin/mcp-scraper-install.cjs.map +1 -1
- package/dist/bin/mcp-scraper-install.js +1 -1
- package/dist/bin/mcp-stdio-server.cjs +283 -224
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/bin/paa-harvest.cjs.map +1 -1
- package/dist/bin/paa-harvest.js +2 -2
- package/dist/{chunk-RXJHXBGG.js → chunk-BRVX6RDN.js} +21 -4
- package/dist/chunk-BRVX6RDN.js.map +1 -0
- package/dist/{chunk-KPF64WST.js → chunk-E7BZFMWB.js} +284 -225
- package/dist/chunk-E7BZFMWB.js.map +1 -0
- package/dist/{chunk-DVRPXPYH.js → chunk-FUVQR6GK.js} +14 -3
- package/dist/chunk-FUVQR6GK.js.map +1 -0
- package/dist/chunk-NVTFLLEG.js +7 -0
- package/dist/chunk-NVTFLLEG.js.map +1 -0
- package/dist/{chunk-GMTS35L6.js → chunk-RXNHY3TF.js} +2 -2
- package/dist/{db-LYQENFPW.js → db-H3S3M6KK.js} +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{server-CZT7EULY.js → server-MKUN6NQZ.js} +513 -370
- package/dist/server-MKUN6NQZ.js.map +1 -0
- package/dist/{worker-FNSBPP7Y.js → worker-4CVMSUZR.js} +4 -4
- package/package.json +4 -2
- package/dist/chunk-DVRPXPYH.js.map +0 -1
- package/dist/chunk-KPF64WST.js.map +0 -1
- package/dist/chunk-OUZZNW3I.js +0 -7
- package/dist/chunk-OUZZNW3I.js.map +0 -1
- package/dist/chunk-RXJHXBGG.js.map +0 -1
- package/dist/server-CZT7EULY.js.map +0 -1
- /package/dist/{chunk-GMTS35L6.js.map → chunk-RXNHY3TF.js.map} +0 -0
- /package/dist/{db-LYQENFPW.js.map → db-H3S3M6KK.js.map} +0 -0
- /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-
|
|
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('
|
|
2793
|
-
location: z.string().optional().describe('City, region, or country for geo
|
|
2794
|
-
maxQuestions: z.number().int().min(1).max(200).default(30).describe("
|
|
2795
|
-
gl: z.string().length(2).default("us").describe("Google country code inferred from location or user language.
|
|
2796
|
-
hl: z.string().default("en").describe("Google interface/content language inferred from the user request.
|
|
2797
|
-
device: z.enum(["desktop", "mobile"]).default("desktop").describe("SERP device context. Use
|
|
2798
|
-
proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_PROXY_MODE).describe('Leave unset
|
|
2799
|
-
proxyZip: z.string().regex(/^\d{5}$/).optional().describe(
|
|
2800
|
-
debug: z.boolean().default(false).describe("Include sanitized
|
|
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.
|
|
2804
|
-
screenshot: z.boolean().default(false).describe("
|
|
2805
|
-
screenshotDevice: z.enum(["desktop", "mobile"]).default("desktop").describe("Viewport for screenshot. desktop = 1440\xD7900
|
|
2806
|
-
extractBranding: z.boolean().default(false).describe("Extract brand colors, fonts, logo, and favicon
|
|
2807
|
-
downloadMedia: z.boolean().default(false).describe("Extract and download
|
|
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.
|
|
2810
|
-
depositToVault: z.boolean().default(false).describe("
|
|
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
|
|
2819
|
-
maxPages: z.number().int().min(1).max(1e4).optional().describe("Maximum pages to extract.
|
|
2820
|
-
rotateProxies: z.boolean().optional().describe("Route page fetches through rotating residential proxies
|
|
2821
|
-
rotateProxyEvery: z.number().int().min(1).max(100).optional().describe("When rotateProxies is on,
|
|
2822
|
-
formats: z.array(z.enum(["markdown", "links", "json", "images", "branding"])).optional().describe("
|
|
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
|
|
2826
|
-
maxPages: z.number().int().min(1).max(1e4).optional().describe("Maximum pages to crawl and audit.
|
|
2827
|
-
rotateProxies: z.boolean().optional().describe("Route page fetches through rotating residential proxies to defeat rate-limiting and bot blocks
|
|
2828
|
-
rotateProxyEvery: z.number().int().min(1).max(100).optional().describe("When rotateProxies is on,
|
|
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.
|
|
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
|
|
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
|
|
2842
|
-
libraryId: z.string().optional().describe("Facebook Ad Library archive ID
|
|
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.
|
|
2845
|
-
country: z.string().length(2).default("US").describe("Two-letter Ad Library country code. Default US.
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2880
|
-
profile: z.string().min(1).optional().describe("Optional saved hosted browser profile name
|
|
2881
|
-
saveProfileChanges: z.boolean().optional().describe("
|
|
2882
|
-
maxItems: z.number().int().min(1).max(2e3).default(50).describe("Maximum
|
|
2883
|
-
maxScrolls: z.number().int().min(0).max(250).default(10).describe("Maximum pagination scroll attempts. Default 10, maximum 250.
|
|
2884
|
-
scrollDelayMs: z.number().int().min(250).max(5e3).default(1200).describe("Delay after each
|
|
2885
|
-
stableScrollLimit: z.number().int().min(1).max(10).default(4).describe("Stop after this many consecutive scrolls with no new links
|
|
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/.
|
|
2889
|
-
profile: z.string().min(1).optional().describe("Optional saved hosted browser profile name
|
|
2890
|
-
saveProfileChanges: z.boolean().optional().describe("
|
|
2891
|
-
mediaTypes: z.array(z.enum(["image", "video", "audio"])).default(["image", "video", "audio"]).describe("Which media types to download when downloadMedia is true.
|
|
2892
|
-
downloadMedia: z.boolean().default(true).describe("Download extracted text/media files to the
|
|
2893
|
-
downloadAllTracks: z.boolean().default(false).describe("Download every captured
|
|
2894
|
-
includeTranscript: z.boolean().default(false).describe("Transcribe the selected audio track
|
|
2895
|
-
mux: z.boolean().default(true).describe("
|
|
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.
|
|
2899
|
-
location: z.string().min(1).describe('City/region/country where the business should be searched, e.g. "Denver, CO".
|
|
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("
|
|
2903
|
-
maxReviews: z.number().int().min(1).max(500).default(50).describe("Max review cards
|
|
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,
|
|
2907
|
-
location: z.string().optional().describe('City, region, country, or service area
|
|
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
|
|
2911
|
-
proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_MAPS_PROXY_MODE).describe("
|
|
2912
|
-
proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional US ZIP override for residential
|
|
2913
|
-
debug: z.boolean().default(false).describe("Include sanitized browser/proxy diagnostics
|
|
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
|
|
2917
|
-
state: z.string().min(2).default("TN").describe("US state abbreviation or
|
|
2918
|
-
minPopulation: z.number().int().min(0).default(1e5).describe(
|
|
2919
|
-
populationYear: z.number().int().min(2020).max(2025).default(2025).describe("Census population estimate year
|
|
2920
|
-
maxCities: z.number().int().min(1).max(100).default(25).describe("Maximum
|
|
2921
|
-
maxResultsPerCity: z.number().int().min(1).max(50).default(50).describe("Google Maps
|
|
2922
|
-
concurrency: z.number().int().min(1).max(5).default(5).describe("
|
|
2923
|
-
includeZipGroups: z.boolean().default(true).describe("Attach ZIP groups from a configured US ZIPS CSV when available
|
|
2924
|
-
usZipsCsvPath: z.string().optional().describe("Local/test-only path to a US ZIPS CSV
|
|
2925
|
-
saveCsv: z.boolean().default(true).describe("Save a directory-ready CSV to the MCP Scraper output directory and return its path.
|
|
2926
|
-
proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_MAPS_PROXY_MODE).describe("Proxy targeting
|
|
2927
|
-
proxyZip: z.string().regex(/^\d{5}$/).optional().describe("Optional ZIP override for proxy targeting
|
|
2928
|
-
debug: z.boolean().default(false).describe("Include sanitized browser/proxy diagnostics
|
|
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
|
|
2934
|
-
targetBusinessName: z.string().min(1).optional().describe("Primary Google Business Profile
|
|
2935
|
-
trackingModes: z.array(RankTrackerModeSchema).min(1).max(4).default(["maps", "organic", "ai_overview", "paa"]).describe("Rank tracker surfaces to build
|
|
2936
|
-
keywords: z.array(z.string().min(1)).max(200).default([]).describe("Seed keywords or service queries to track. Leave empty
|
|
2937
|
-
locations: z.array(z.string().min(1)).max(100).default([]).describe(
|
|
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
|
|
2940
|
-
scheduleCadence: z.enum(["daily", "weekly", "monthly", "custom"]).default("weekly").describe("Default recurring rank check cadence
|
|
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
|
|
2943
|
-
includeCron: z.boolean().default(true).describe("Include a cron
|
|
2944
|
-
includeDashboard: z.boolean().default(true).describe("Include dashboard/reporting requirements
|
|
2945
|
-
includeAlerts: z.boolean().default(true).describe("Include alert rules for rank movement and SERP feature
|
|
2946
|
-
notes: z.string().max(4e3).optional().describe("Extra product, client, stack, or hosting requirements
|
|
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("
|
|
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
|
|
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
|
|
3561
|
-
input: z.record(z.unknown()).default({}).describe("Workflow-specific input object
|
|
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
|
|
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.
|
|
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('
|
|
3633
|
-
location: z.string().optional().describe("City, region, or country for geo-
|
|
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
|
|
3637
|
-
proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_PROXY_MODE).describe('Leave unset \u2014
|
|
3638
|
-
proxyZip: z.string().regex(/^\d{5}$/).optional().describe(
|
|
3639
|
-
debug: z.boolean().default(false).describe("Include sanitized
|
|
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(
|
|
3644
|
-
location: z.string().optional().describe("City, region, country, or service area
|
|
3645
|
-
gl: z.string().length(2).default("us").describe("Google country code inferred from the requested market
|
|
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
|
|
3648
|
-
proxyMode: z.enum(["location", "configured", "none"]).default(DEFAULT_PROXY_MODE).describe('Leave unset \u2014
|
|
3649
|
-
proxyZip: z.string().regex(/^\d{5}$/).optional().describe(
|
|
3650
|
-
pages: z.number().int().min(1).max(2).default(1).describe("
|
|
3651
|
-
debug: z.boolean().default(false).describe("Include sanitized browser
|
|
3652
|
-
includePageSnapshots: z.boolean().default(false).describe("Also capture ranking-page snapshots for selected SERP URLs
|
|
3653
|
-
pageSnapshotLimit: z.number().int().min(0).max(10).default(0).describe("Maximum ranking-page snapshots
|
|
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
|
|
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
|
|
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
|
|
3667
|
-
maxConcurrency: z.number().int().min(1).max(5).default(2).describe("Parallel page captures.
|
|
3668
|
-
timeoutMs: z.number().int().min(1e3).max(6e4).default(15e3).describe("Per-page capture timeout in milliseconds
|
|
3669
|
-
debug: z.boolean().default(false).describe("Include sanitized browser/proxy diagnostics
|
|
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
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
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(
|
|
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
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
4714
|
-
timeout_seconds: z2.number().int().min(60).max(259200).optional().describe("
|
|
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
|
|
4718
|
-
profile: z2.string().optional().describe("Profile to add this login to. Omit to derive
|
|
4719
|
-
domain: z2.string().optional().describe("Site to log into, e.g. chatgpt.com, claude.ai, reddit.com. Defaults to chatgpt.com.
|
|
4720
|
-
login_url: z2.string().url().optional().describe("Login page for the domain. Defaults to https://<domain
|
|
4721
|
-
url: z2.string().url().optional().describe("Deprecated alias for login_url.
|
|
4722
|
-
note: z2.string().optional().describe(
|
|
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("
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
4777
|
-
replay_id: z2.string().describe("The replay id returned by browser_replay_start or browser_list_replays.
|
|
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.
|
|
4781
|
-
replay_id: z2.string().describe("The replay id returned by browser_replay_start or browser_list_replays.
|
|
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
|
|
4786
|
-
start_seconds: z2.number().min(0).default(0).describe("When the annotation should appear
|
|
4787
|
-
end_seconds: z2.number().min(0).optional().describe("When
|
|
4788
|
-
left: z2.number().optional().describe("Target left edge in
|
|
4789
|
-
top: z2.number().optional().describe("Target top edge in
|
|
4790
|
-
width: z2.number().positive().optional().describe("Target width in
|
|
4791
|
-
height: z2.number().positive().optional().describe("Target height in
|
|
4792
|
-
x: z2.number().optional().describe("Point target x coordinate
|
|
4793
|
-
y: z2.number().optional().describe("Point target y coordinate
|
|
4794
|
-
from_x: z2.number().optional().describe("Arrow start x coordinate
|
|
4795
|
-
from_y: z2.number().optional().describe("Arrow start y coordinate
|
|
4796
|
-
to_x: z2.number().optional().describe("Arrow
|
|
4797
|
-
to_y: z2.number().optional().describe("Arrow
|
|
4798
|
-
label: z2.string().max(120).optional().describe("Optional text callout
|
|
4799
|
-
color: z2.string().regex(/^#?[0-9a-fA-F]{6}$/).optional().describe("Annotation color as hex,
|
|
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.
|
|
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.
|
|
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,
|
|
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
|
|
4811
|
-
duration_seconds: z2.number().min(0.5).max(30).default(4).describe("How long the
|
|
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.
|
|
4815
|
-
replay_id: z2.string().describe("The replay id returned by browser_replay_start or browser_list_replays.
|
|
4816
|
-
annotations: z2.array(BrowserReplayAnnotationSchema).min(1).max(50).describe("Timed overlay annotations
|
|
4817
|
-
filename: z2.string().optional().describe("Optional output MP4 filename. Defaults to a timestamped
|
|
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
|
|
4820
|
-
source_left_offset: z2.number().min(0).optional().describe("
|
|
4821
|
-
source_top_offset: z2.number().min(0).optional().describe("
|
|
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("
|
|
4828
|
-
prompt: z2.string().optional().describe("Optional prompt to type
|
|
4829
|
-
wait_ms: z2.number().int().min(0).max(18e4).optional().describe("How long to wait for the answer stream to finish
|
|
4830
|
-
first_party_domain: z2.string().optional().describe("The brand/site being researched,
|
|
4831
|
-
reset: z2.boolean().default(false).describe("Clear any previously buffered stream for this page before capturing.
|
|
4832
|
-
export: z2.boolean().default(false).describe("
|
|
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
|
|
4857
|
-
browsed_urls: z2.array(FanoutSourceOutput).describe("Every researched URL
|
|
4858
|
-
cited_urls: z2.array(FanoutSourceOutput).describe("
|
|
4859
|
-
browsed_only: z2.array(FanoutSourceOutput).describe("Researched URLs
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
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:
|
|
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-
|
|
6110
|
+
//# sourceMappingURL=chunk-E7BZFMWB.js.map
|