Viral-content intelligence for AI agents — 7 read-only MCP tools, evidence-layer scoring.
Call this server's tools from your browser. Nothing to install.
Bearer hl_live_* (free tier signup at https://hooklayer.dev/auth/signup) OR OAuth 2.1 access token (Dynamic Client Registration available at https://hooklayer.dev/oauth/register).
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Analyze a TikTok, YouTube, or Instagram creator by handle or channel ID. Returns viral DNA scores (viral_dna_score, replicability_score, originality_score, consistency_score, audience_fatigue), content patterns, format fingerprint, top recent videos with transcripts, content gaps, a headline_insight object (the single largest quantified performance gap across length, hook, format, and cadence, plus its so_what), and suggested next research steps. Use when the user asks to analyze a creator, account, channel, or competitor. Supports TikTok (full transcript extraction), YouTube (Shorts and longform analysis with captions when available), and Instagram (Reels with best-effort transcripts).
Creator handle (with or without @ prefix) or YouTube channel ID. Examples: "@mrbeast", "mrbeast", "UCX6OQ3DkcsbYNE6H8uQQuVA".
Optional ISO date (e.g. "2026-04-01"). Filter the candidate video pool to those posted on/after this date. Useful when the user asks "show me what they've done THIS month" — the route returns honest empty + warning when the filter matches 0, no credits charged. Use either `since` or `window`, not both.
Recency sugar — same effect as `since` but takes a friendlier bucket. Maps to a since-cutoff at request time. Use either `since` or `window`, not both.
Platform to analyze. "tiktok" (default) returns full pipeline with transcripts. "youtube" analyzes recent Shorts via YouTube Data API + Innertube caption extraction — videos with captions disabled or geoblocked resolve to transcript: null. "instagram" (shipped 2026-07-06) fetches the creator's reels via ScrapeCreators Instagram API + best-effort reel transcripts on the top 5 — Instagram data lacks lifetime totalLikes so that field defaults to 0.
When true, hard-cap the candidate pool to videos posted in the last 90 days. Stricter than `window=90d` because it never falls through to archival data on a thin recent corpus.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Analyze a TikTok, YouTube, or Instagram creator by handle or channel ID. Returns viral DNA scores (viral_dna_score, replicability_score, originality_score, consistency_score, audience_fatigue), content patterns, format fingerprint, top recent videos with transcripts, content gaps, a headline_insight object (the single largest quantified performance gap across length, hook, format, and cadence, plus its so_what), and suggested next research steps. Use when the user asks to analyze a creator, account, channel, or competitor. Supports TikTok (full transcript extraction), YouTube (Shorts and longform analysis with captions when available), and Instagram (Reels with best-effort transcripts).
| Argument | Type | Description |
|---|---|---|
| since | string | Optional ISO date (e.g. "2026-04-01"). Filter the candidate video pool to those posted on/after this date. Useful when the user asks "show me what they've done THIS month" — the route returns honest empty + warning when the filter matches 0, no credits charged. Use either `since` or `window`, not both. |
| handle* | string | Creator handle (with or without @ prefix) or YouTube channel ID. Examples: "@mrbeast", "mrbeast", "UCX6OQ3DkcsbYNE6H8uQQuVA". |
| window | string | Recency sugar — same effect as `since` but takes a friendlier bucket. Maps to a since-cutoff at request time. Use either `since` or `window`, not both. |
| platform | string | Platform to analyze. "tiktok" (default) returns full pipeline with transcripts. "youtube" analyzes recent Shorts via YouTube Data API + Innertube caption extraction — videos with captions disabled or geoblocked resolve to transcript: null. "instagram" (shipped 2026-07-06) fetches the creator's reels via ScrapeCreators Instagram API + best-effort reel transcripts on the top 5 — Instagram data lacks lifetime totalLikes so that field defaults to 0. |
| recent_only | boolean | When true, hard-cap the candidate pool to videos posted in the last 90 days. Stricter than `window=90d` because it never falls through to archival data on a thin recent corpus. |
{
"type": "object",
"required": [
"handle"
],
"properties": {
"since": {
"type": "string",
"description": "Optional ISO date (e.g. \"2026-04-01\"). Filter the candidate video pool to those posted on/after this date. Useful when the user asks \"show me what they've done THIS month\" — the route returns honest empty + warning when the filter matches 0, no credits charged. Use either `since` or `window`, not both."
},
"handle": {
"type": "string",
"description": "Creator handle (with or without @ prefix) or YouTube channel ID. Examples: \"@mrbeast\", \"mrbeast\", \"UCX6OQ3DkcsbYNE6H8uQQuVA\"."
},
"window": {
"enum": [
"24h",
"7d",
"30d",
"90d",
"6m",
"12m",
"this-month"
],
"type": "string",
"description": "Recency sugar — same effect as `since` but takes a friendlier bucket. Maps to a since-cutoff at request time. Use either `since` or `window`, not both."
},
"platform": {
"enum": [
"tiktok",
"youtube",
"instagram"
],
"type": "string",
"description": "Platform to analyze. \"tiktok\" (default) returns full pipeline with transcripts. \"youtube\" analyzes recent Shorts via YouTube Data API + Innertube caption extraction — videos with captions disabled or geoblocked resolve to transcript: null. \"instagram\" (shipped 2026-07-06) fetches the creator's reels via ScrapeCreators Instagram API + best-effort reel transcripts on the top 5 — Instagram data lacks lifetime totalLikes so that field defaults to 0."
},
"recent_only": {
"type": "boolean",
"description": "When true, hard-cap the candidate pool to videos posted in the last 90 days. Stricter than `window=90d` because it never falls through to archival data on a thin recent corpus."
}
},
"additionalProperties": false
}Deeply validate ONE TikTok Shop product before committing money or content to it. Give it a product_id from product_scout (or any TikTok Shop product URL) and it reads the listing, samples reviews across the full depth rather than only the most recent page, pulls comparable competitors, and returns what buyers actually say. You get: provider-reported sold / review / rating / price evidence; buyer voice split into what buyers praise and what they complain about; unmet needs and purchase objections in buyers' own words; return and fulfilment signal; a Why Now read; competitor intelligence and where rivals are weak; risks separated into product risks, market risks and data-confidence risks; and a 'how to beat this' synthesis of concrete differentiation angles traced back to specific review evidence. Every section states whether it resolved - provider facts, HookLayer analysis and genuinely unavailable evidence are distinguishable, and thin evidence is reported as thin rather than filled in. There is no revenue or GMV output and sold counts are never multiplied by price. Use product_scout first to find candidates, then this to decide between them. Cost: 10 credits. Requires the shop_intelligence entitlement.
| Argument | Type | Description |
|---|---|---|
| market | string | 2-letter ISO region code or 'GLOBAL'. Defaults to US. Should match the market the product was found in. |
| product_id | string | TikTok Shop numeric product id, as returned by product_scout in opportunities[].product_id. Supply this or product_url. |
| product_url | string | Any TikTok Shop product URL (tiktok.com/shop/pdp/..., shop.tiktok.com/.../pdp/..., /view/product/...). Used when the user pastes a link instead of an id. |
| include_competitors | boolean | Default true. Competitor discovery and the cross-product buyer-pain map are the differentiated part of this report; set false only when the caller explicitly wants the single-product read and fewer provider calls. The credit cost is the same either way. |
Turn a brand brief that just landed into a one-page creative blueprint the manager can forward to the creator and to the brand contact — hook + template + hashtag combo + trend-velocity check + shoot instructions, in one call. Use when a brand sends a product and needs content on a tight turnaround (e.g. "product arrived, need content in 48 hours") and the manager needs a defensible direction with no research time. Chains find_viral_template + trend_pulse + score_hook + predict_virality upstream but exposes them as one MCP tool so agents don't stitch them manually. Cost 7 credits (bundle discount vs firing the chain manually). Returns a blueprint object with verdict (GO | NEEDS_MORE_DATA | NO_GO) and verdict_reason, a hook (text + trend_still_alive: up-slope | plateau | fading | unknown), script, hashtags, shoot notes, risk flags, and manager talking points, plus a quality object (level + reason) describing completeness; when quality.level is not "full", or verdict is NEEDS_MORE_DATA or NO_GO, the blueprint is a starting point rather than a shippable direction.
| Argument | Type | Description |
|---|---|---|
| niche* | string | One of the 18 supported niches (Beauty & Skincare, Fitness & Health, Food & Cooking, Fashion & Style, Tech & Gadgets, Finance & Business, Education & Learning, Travel & Adventure, Comedy & Entertainment, Gaming, Lifestyle & Wellness, Parenting & Family, DIY & Crafts, Music & Dance, Pets & Animals, Sports, Motivation & Self-Help, SaaS & AI Tools). Loose names like "beauty" or "fitness" are auto-mapped. |
| region | string | Optional 2-letter ISO country code (US, GB, CA, etc.). Threads to niche + trend upstreams. |
| product* | string | What the brand sent (name + one line, e.g. "Athletic Greens AG1 travel packs — 30-count individual sachets for travel") |
Compare 2 to 4 saved analyze_product results side by side using only the stored evidence (identity, market proof, economics, competition, creator content, verdict). Read-only, 0 credits, no new analysis. Fields the source never reported are returned as not present, never estimated, and a freshness warning is included when the evidence ages differ by more than two days. Ids the user does not own come back in missing[]. Use after list_saved_research when the user asks which of their saved products to pursue.
| Argument | Type | Description |
|---|---|---|
| saved_ids* | array | saved_id values of product_analysis results |
{
"type": "object",
"required": [
"saved_ids"
],
"properties": {
"saved_ids": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$"
},
"maxItems": 4,
"minItems": 2,
"description": "saved_id values of product_analysis results"
}
},
"additionalProperties": false
}Find proven viral templates in a niche with example videos. Returns templates ranked by performance, including hook patterns, format structures, average views, and example URLs. Use when the user asks what's working in a niche or wants concrete copyable structures. Supports the 18 canonical niches with optional angle narrowing via query parameter for more specific results (e.g., "postpartum strength" within Fitness).
| Argument | Type | Description |
|---|---|---|
| niche* | string | One of the 18 supported niches (Beauty & Skincare, Fitness & Health, Food & Cooking, Fashion & Style, Tech & Gadgets, Finance & Business, Education & Learning, Travel & Adventure, Comedy & Entertainment, Gaming, Lifestyle & Wellness, Parenting & Family, DIY & Crafts, Music & Dance, Pets & Animals, Sports, Motivation & Self-Help, SaaS & AI Tools). Loose names like "travel" or "fitness" are accepted but pass the canonical form when possible. |
| query | string | Optional angle narrowing within the niche. E.g. niche="Fitness & Health" + query="postpartum strength" returns only postpartum-strength templates, not generic gym. Templates are scored by query-token match against title+description+hashtags; zero-match templates are dropped. Leave empty for niche-wide top templates. |
| region | string | Optional 2-letter ISO country code (US, GB, BR, JP, IN, PH, etc.). Threads to YouTube Search regionCode + TikTok niche query. Reddit niche signals are global and ignore this param. Pass when the user wants templates that resonate with a specific local audience. |
| window | string | Recency filter. Drops example videos older than the window. Note: TikTok hashtag-corpus rows often lack timestamps and are excluded when window is set — surfaces as a quality warning so callers can decide whether to broaden. |
Detect what changed since the last saved baseline for a tracked creator. Runs a fresh analyze_account under the hood, compares against the most recent CreatorSnapshot, persists the new snapshot, and returns ONLY the meaningful shifts (format, viral DNA, engagement, hook pattern, topic pillars, outlier videos). Use when the user asks 'what changed with @creator', 'anything new', 'check this competitor again', 'what's different since last time', 'check my tracked creator', or 'has anything changed'. Requires a previously tracked creator (call analyze_account + watch_account first if there is no baseline yet). Costs 5 credits per call because the fresh analysis is genuine (not cached). Returns a top_action pointing at the single next tool worth calling given the detected change. Returns status='no_meaningful_change' honestly when nothing shifted — no fabricated deltas.
| Argument | Type | Description |
|---|---|---|
| handle | string | Creator handle (with or without @). Required if watch_id is not provided. |
| platform | string | Platform the tracked creator publishes on. Required if watch_id is not provided. |
| watch_id | string | Watch identifier returned by watch_account or list_watches. Preferred over (platform, handle) when you have it — the ownership check is exact. |
{
"type": "object",
"properties": {
"handle": {
"type": "string",
"description": "Creator handle (with or without @). Required if watch_id is not provided."
},
"platform": {
"enum": [
"tiktok",
"instagram",
"youtube"
],
"type": "string",
"description": "Platform the tracked creator publishes on. Required if watch_id is not provided."
},
"watch_id": {
"type": "string",
"description": "Watch identifier returned by watch_account or list_watches. Preferred over (platform, handle) when you have it — the ownership check is exact."
}
},
"additionalProperties": false
}Retrieve one saved result in full (the stored research payload, what was asked, timestamps) by its saved_id. Read-only, 0 credits. Only the authenticated user's own results resolve; any other id is not found. Use when the user wants to reuse, re-read or build on something they saved earlier instead of paying to run the tool again.
| Argument | Type | Description |
|---|---|---|
| saved_id* | string |
{
"type": "object",
"required": [
"saved_id"
],
"properties": {
"saved_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$"
}
},
"additionalProperties": false
}List the authenticated user's saved HookLayer research (newest first by default). Read-only, 0 credits. Filter by kind, search titles, choose sort newest|oldest|title, include archived, and page with the returned cursor. Returns summaries (id, kind, title, timestamps, dashboard link), not the full result; call get_saved_research for one. Use when the user asks 'what have I saved', 'show my saved products', 'find the analysis I saved for @handle'.
| Argument | Type | Description |
|---|---|---|
| kind | string | |
| sort | string | |
| limit | number | |
| query | string | Case-insensitive title search |
| cursor | string | next_cursor from the previous page |
| archived | string | Default active |
{
"type": "object",
"properties": {
"kind": {
"enum": [
"creator_analysis",
"hook_score",
"virality_prediction",
"product_scout",
"product_analysis",
"script",
"template"
],
"type": "string"
},
"sort": {
"enum": [
"newest",
"oldest",
"title"
],
"type": "string"
},
"limit": {
"type": "number",
"maximum": 50,
"minimum": 1
},
"query": {
"type": "string",
"maxLength": 100,
"description": "Case-insensitive title search"
},
"cursor": {
"type": "string",
"description": "next_cursor from the previous page"
},
"archived": {
"enum": [
"active",
"archived",
"all"
],
"type": "string",
"description": "Default active"
}
},
"additionalProperties": false
}List every creator the authenticated user is tracking. Read-only, 0 credits. Returns each watch's id, platform, handle, when it was created + last updated, when the last snapshot was taken, and whether it's active. Does NOT return the snapshot payload itself — call watch_account (idempotent) to refresh a baseline. Use when the user asks 'what am I tracking', 'show my watches', 'list creators'.
No arguments.
{
"type": "object",
"properties": {},
"additionalProperties": false
}Extract a creator's voice DNA from reference samples and rewrite a draft in their style. Requires at least 3 reference samples (video URLs or text). Returns voice profile (energy, humor, vocabulary, signature phrases), reusable prompt instructions, and the rewritten draft. Use when the user wants to write in another creator's style or match a specific voice.
| Argument | Type | Description |
|---|---|---|
| draft* | string | The text to rewrite |
| reference_samples* | array | At least 3 reference samples — TikTok/YouTube/Instagram URLs or raw text |
{
"type": "object",
"required": [
"draft",
"reference_samples"
],
"properties": {
"draft": {
"type": "string",
"description": "The text to rewrite"
},
"reference_samples": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 3,
"description": "At least 3 reference samples — TikTok/YouTube/Instagram URLs or raw text"
}
},
"additionalProperties": false
}Score a draft script for viral potential with adversarial verification. Returns a virality score, recommendation (ship/rework/no-go), viral DNA breakdown with evidence, attack vectors analysis, and calibration metrics. Use when the user has a finished draft and wants pre-publish verification. Pass either a script string or a video URL.
| Argument | Type | Description |
|---|---|---|
| niche | string | Niche context |
| script* | string | The draft script to predict on (or a video URL — auto-extracts transcript) |
{
"type": "object",
"required": [
"script"
],
"properties": {
"niche": {
"type": "string",
"description": "Niche context"
},
"script": {
"type": "string",
"description": "The draft script to predict on (or a video URL — auto-extracts transcript)"
}
},
"additionalProperties": false
}Find and rank current TikTok Shop / social-commerce product opportunities using evidence rather than opinion. Use it to answer questions like 'what skincare products are breaking out in the US under $40', 'show me products with strong reviews but low competition', or 'what is worth testing in this niche right now'. Returns products ranked by a deterministic 9-component engine (demand, momentum, creator_adoption, competition, saturation, review_strength, price_attractiveness, creator_concentration, freshness), each carrying an opportunity status (emerging | promising | crowded | mature | cooling | insufficient_data), a qualification record (what passed, failed and is unknown), a confidence band, evidence-cited why_now[], risks[], insufficient_signals[] and history_coverage. Status comes from a qualification gate, never from the score: emerging needs measured sold-count growth across 3+ dated observations spanning 7+ days plus an independent signal (review growth or creator adoption over time); mature means established demand without verified growth; insufficient_data means trajectory cannot be verified yet, however high the score. verification_summary.outcome is NO_VERIFIED_OPPORTUNITIES whenever no returned product passed the gate - say so plainly instead of presenting the list as opportunities, and use verification_summary.by_status to explain whether the category or the filters were the limit. Amazon competition is never measured (AMAZON_COMPETITION_UNVERIFIED); never describe a product as unsaturated on Amazon. The ranking is deterministic and contains no model output - read qualification, why_now, risks and components to explain to the user WHY something ranked where it did, and never present the score on its own. Provider-reported fields live under provider_reported.* and are null when TikTok did not expose them; null means unknown, never zero, and sold counts are never multiplied by price to imply revenue. There is no revenue or GMV field. To validate a single product in depth once you have a shortlist, call analyze_product - product_scout ranks a field of candidates, analyze_product interrogates one. Not for generic video search (use search_videos), creator analysis (use analyze_account), or any guaranteed-sales claim. Cost: 5 credits. Requires the shop_intelligence entitlement.
| Argument | Type | Description |
|---|---|---|
Save a HookLayer result the user already received in this conversation so it appears under Saved Research in their HookMafia dashboard. 0 credits: this stores the result you already hold, it never re-runs the research tool. After a research result, offer once in one line to save it to HookMafia; call this only when the user says yes or asks to save, keep or bookmark a result. Pass the tool's structured result as `result` (billing and chain fields are dropped server-side), the kind that matches the tool, a short title, and a stable `request_id` so a retried save is deduplicated instead of duplicated. Returns the saved id and a dashboard link. Use list_saved_research / get_saved_research to read it back and compare_saved_products for 2-4 saved analyze_product results.
| Argument | Type | Description |
|---|---|---|
| kind* | string | creator_analysis (analyze_account), hook_score (score_hook), virality_prediction (predict_virality), product_scout (product_scout), product_analysis (analyze_product), script (viral_remix, match_voice), template (find_viral_template, brief_to_blueprint) |
| title* | string | Short plain-text title, e.g. "@handle TikTok analysis" or the product name |
| result* | object | The structured result of the earlier tool call, exactly as received. Up to 64 KB after server-side allowlisting. |
| tool_name* | string | The HookLayer tool that produced the result, e.g. analyze_product |
| product_id | string | Canonical product id for product_analysis / product_scout results |
Score a TikTok, Reels, or Shorts hook against proven viral patterns. Returns a 0-100 score, percentile rank, matched pattern, strengths, weaknesses, and three improved hook variations. Use when the user has a draft hook to validate, wants to compare alternatives, or needs feedback before publishing.
| Argument | Type | Description |
|---|---|---|
| text* | string | The hook to score (3-200 chars typical) |
| niche | string | Optional niche context (e.g. "Beauty & Skincare", "Finance & Business") |
| platform* | string | Target platform — affects pattern matching |
{
"type": "object",
"required": [
"text",
"platform"
],
"properties": {
"text": {
"type": "string",
"description": "The hook to score (3-200 chars typical)"
},
"niche": {
"type": "string",
"description": "Optional niche context (e.g. \"Beauty & Skincare\", \"Finance & Business\")"
},
"platform": {
"enum": [
"tiktok",
"reels",
"shorts"
],
"type": "string",
"description": "Target platform — affects pattern matching"
}
},
"additionalProperties": false
}Search for short-form videos by keyword across TikTok or Instagram. Returns up to 20 videos ranked by engagement, with view counts, likes, shares, comments, hashtags, author info, and URLs. Use when the user asks to find videos about a topic or keyword. Supports optional filters for niche, minimum views, recency window, and region. Pass product_id to check which videos link a specific TikTok Shop product: linkage is exact_product_link only when the video carries that product link; keyword_match videos are NOT verified for that product, and evidence_summary.product_linkage.status is VIDEO_LINKAGE_UNVERIFIED when none link it. Region counts as verified only from the provider-reported video region; otherwise it is unknown. View counts are cumulative and do not show current acceleration.
| Argument | Type | Description |
|---|---|---|
| limit | integer | Max videos to return after filtering. Default 12, max 20. |
| niche | string | Optional — only return videos whose description contains niche-related tokens. Loose niche strings work ("fitness", "Beauty & Skincare"). |
| query* | string | Free-text search term. Examples: "morning routine", "iphone case", "passive income". |
| region | string | ISO country code (US, GB, BR, PH, JP, etc.). Note: corpus coverage varies by region — small regions may return zero results and a degraded quality flag. |
| window | string | Recency filter. Maps to the closest ScrapeCreators date bucket AND applies a client-side cutoff for defense-in-depth. |
| platform |
Research what is currently gaining traction in short-form content for a specific niche. Returns rising opportunities (formats, hooks, styles, topics) with growth signals, data sources, and saturated patterns to avoid. Use when the user asks what to post about, what's trending in a niche, or needs to validate a content idea against current trends. Supports the 18 canonical niches and optional region filtering.
| Argument | Type | Description |
|---|---|---|
| niche | string | One of the 18 supported niches (Beauty & Skincare, Fitness & Health, Food & Cooking, Fashion & Style, Tech & Gadgets, Finance & Business, Education & Learning, Travel & Adventure, Comedy & Entertainment, Gaming, Lifestyle & Wellness, Parenting & Family, DIY & Crafts, Music & Dance, Pets & Animals, Sports, Motivation & Self-Help, SaaS & AI Tools). Loose names like "travel" or "fitness" are accepted but pass the canonical form when possible. Omit for broadly applicable trends. |
| region | string | Optional 2-letter ISO country code (US, GB, BR, JP, IN, PH, etc.). Threads to Google Trends geo + YouTube regionCode. Defaults to US when omitted. Reddit signals are global and ignore this param. |
| deadline_hours | integer | Optional (2026-07-06 magic-genie ritual): how many hours until the video posts. When set, each rising trend gets a trend_status (up-slope | plateau | fading | unknown) AND a deadline_verdict (safe | risky | no-go) so managers can answer "will this trend still be alive when the video posts?" without eyeballing the growth label. Use this on every brief-just-landed call — it turns trend_pulse from "what's trending" into "what's SAFE to bet on for MY post window." |
{
"type": "object",
"properties": {
"niche": {
"enum": [
"Beauty & Skincare",
"Fitness & Health",
"Food & Cooking",
"Fashion & Style",
"Tech & Gadgets",
"Finance & Business",
"Education & Learning",
"Travel & Adventure",
"Comedy & Entertainment",
"Gaming",
"Lifestyle & Wellness",
"Parenting & Family",
"DIY & Crafts",
"Music & Dance",
"Pets & Animals",
"Sports",
"Motivation & Self-Help",
"SaaS & AI Tools"
],
"type": "string",
"description": "One of the 18 supported niches (Beauty & Skincare, Fitness & Health, Food & Cooking, Fashion & Style, Tech & Gadgets, Finance & Business, Education & Learning, Travel & Adventure, Comedy & Entertainment, Gaming, Lifestyle & Wellness, Parenting & Family, DIY & Crafts, Music & Dance, Pets & Animals, Sports, Motivation & Self-Help, SaaS & AI Tools). Loose names like \"travel\" or \"fitness\" are accepted but pass the canonical form when possible. Omit for broadly applicable trends."
},
"region": {
"type": "string",
"description": "Optional 2-letter ISO country code (US, GB, BR, JP, IN, PH, etc.). Threads to Google Trends geo + YouTube regionCode. Defaults to US when omitted. Reddit signals are global and ignore this param."
},
"deadline_hours": {
"type": "integer",
"maximum": 168,
"minimum": 1,
"description": "Optional (2026-07-06 magic-genie ritual): how many hours until the video posts. When set, each rising trend gets a trend_status (up-slope | plateau | fading | unknown) AND a deadline_verdict (safe | risky | no-go) so managers can answer \"will this trend still be alive when the video posts?\" without eyeballing the growth label. Use this on every brief-just-landed call — it turns trend_pulse from \"what's trending\" into \"what's SAFE to bet on for MY post window.\""
}
},
"additionalProperties": false
}Take a viral video and produce a fresh script that mirrors its structure and energy pattern for a new topic. Returns the extracted formula, scene-by-scene script with voiceover and visuals, camera directions, and text overlays. Use when the user finds a video they want to replicate the structure of. Pass either a video URL (TikTok, YouTube, or Instagram) or a transcript directly. When promoting a specific product, ALWAYS pass target_product + verified_product_facts so the generator does not fabricate product details.
| Argument | Type | Description |
|---|---|---|
| niche | string | Optional niche hint |
| my_topic | string | DEPRECATED alias for target_topic. Legacy clients only. Normalized internally. |
| platform | string | Target platform for the remix. Adjusts pacing and CTA style if provided. |
| source_url | string | TikTok/YouTube/Instagram URL — transcript will be auto-extracted |
| transcript | string | Pre-extracted transcript (alternative to source_url, faster) |
| target_topic | string | What the remix should be about. Default: same niche as original. |
| target_product | string | The product the remix should promote. When provided, the generator will NOT invent product names, prices, timelines, features, or customer stories. Combined with verified_product_facts, this forces on-topic + grounded output. |
Start tracking a creator so future calls can detect what changed. Creates a durable CreatorWatch + a baseline CreatorSnapshot capturing the creator's current viral DNA scores, format fingerprint, and top recent videos. Use when the user says 'track', 'watch', 'follow', 'keep an eye on' a creator/channel/handle. Idempotent — calling 'watch @same' twice with a fresh baseline in place returns the existing watch with credits_charged=0. Cost: 0 credits when a fresh existing watch snapshot or a compatible recent analyze_account cache can be reused. Otherwise a fresh baseline invokes analyze_account and costs 5 credits — this can happen even for an already-existing watch once freshness expires. Reuses the same 'analyze' permission as analyze_account — no new OAuth scope, no re-consent required.
| Argument | Type | Description |
|---|---|---|
| handle* | string | Creator handle (with or without @ prefix). Examples: "@mrbeast", "mrbeast". |
| platform* | string | Platform the creator publishes on. Same platforms as analyze_account. |
{
"type": "object",
"required": [
"handle",
"platform"
],
"properties": {
"handle": {
"type": "string",
"description": "Creator handle (with or without @ prefix). Examples: \"@mrbeast\", \"mrbeast\"."
},
"platform": {
"enum": [
"tiktok",
"instagram",
"youtube"
],
"type": "string",
"description": "Platform the creator publishes on. Same platforms as analyze_account."
}
},
"additionalProperties": false
}{
"type": "object",
"required": [],
"properties": {
"market": {
"type": "string",
"description": "2-letter ISO region code or 'GLOBAL'. Defaults to US. Should match the market the product was found in."
},
"product_id": {
"type": "string",
"description": "TikTok Shop numeric product id, as returned by product_scout in opportunities[].product_id. Supply this or product_url."
},
"product_url": {
"type": "string",
"description": "Any TikTok Shop product URL (tiktok.com/shop/pdp/..., shop.tiktok.com/.../pdp/..., /view/product/...). Used when the user pastes a link instead of an id."
},
"include_competitors": {
"type": "boolean",
"description": "Default true. Competitor discovery and the cross-product buyer-pain map are the differentiated part of this report; set false only when the caller explicitly wants the single-product read and fewer provider calls. The credit cost is the same either way."
}
},
"additionalProperties": false
}| platform |
| string |
| Target platform. Both TikTok and Instagram Reels supported (shipped 2026-07-06). When set to "instagram", the product-corpus lookup runs against Instagram Reels via ScrapeCreators, and the creator context (if creator_handle passed) fetches Instagram reels. Default: tiktok. |
| creator_handle | string | Optional creator handle (with or without @). If provided, the blueprint hook and script match THEIR voice patterns from recent videos. Highly recommended — a blueprint without creator context is generic. |
| deadline_hours | integer | How many hours until the video must be posted. Default 48. Affects trend-still-alive scoring — a 24-hour deadline needs a trend on the up-slope, not one that just plateaued. |
| product_category* | string | Umbrella category (e.g. "greens powder", "sunscreen", "protein bar") |
{
"type": "object",
"required": [
"product",
"product_category",
"niche"
],
"properties": {
"niche": {
"enum": [
"Beauty & Skincare",
"Fitness & Health",
"Food & Cooking",
"Fashion & Style",
"Tech & Gadgets",
"Finance & Business",
"Education & Learning",
"Travel & Adventure",
"Comedy & Entertainment",
"Gaming",
"Lifestyle & Wellness",
"Parenting & Family",
"DIY & Crafts",
"Music & Dance",
"Pets & Animals",
"Sports",
"Motivation & Self-Help",
"SaaS & AI Tools"
],
"type": "string",
"description": "One of the 18 supported niches (Beauty & Skincare, Fitness & Health, Food & Cooking, Fashion & Style, Tech & Gadgets, Finance & Business, Education & Learning, Travel & Adventure, Comedy & Entertainment, Gaming, Lifestyle & Wellness, Parenting & Family, DIY & Crafts, Music & Dance, Pets & Animals, Sports, Motivation & Self-Help, SaaS & AI Tools). Loose names like \"beauty\" or \"fitness\" are auto-mapped."
},
"region": {
"type": "string",
"description": "Optional 2-letter ISO country code (US, GB, CA, etc.). Threads to niche + trend upstreams."
},
"product": {
"type": "string",
"description": "What the brand sent (name + one line, e.g. \"Athletic Greens AG1 travel packs — 30-count individual sachets for travel\")"
},
"platform": {
"enum": [
"tiktok",
"instagram"
],
"type": "string",
"description": "Target platform. Both TikTok and Instagram Reels supported (shipped 2026-07-06). When set to \"instagram\", the product-corpus lookup runs against Instagram Reels via ScrapeCreators, and the creator context (if creator_handle passed) fetches Instagram reels. Default: tiktok."
},
"creator_handle": {
"type": "string",
"description": "Optional creator handle (with or without @). If provided, the blueprint hook and script match THEIR voice patterns from recent videos. Highly recommended — a blueprint without creator context is generic."
},
"deadline_hours": {
"type": "integer",
"maximum": 168,
"minimum": 1,
"description": "How many hours until the video must be posted. Default 48. Affects trend-still-alive scoring — a 24-hour deadline needs a trend on the up-slope, not one that just plateaued."
},
"product_category": {
"type": "string",
"description": "Umbrella category (e.g. \"greens powder\", \"sunscreen\", \"protein bar\")"
}
}
}| platform | string | Platform to source templates from. "tiktok" (default) uses the full niche-aggregator (YouTube + Reddit + TikTok hashtags). "instagram" (2026-07-06) is keyword-search-only — the Instagram niche-aggregator isn't plumbed yet, so `query` becomes REQUIRED on IG. Output rubric_version signals which path ran: find_viral_template.v1 (main), .v2-keyword-fallback (TikTok fallback), .v3-instagram-keyword-only (IG-only path). |
| min_views | integer | Optional filter — only return examples above this view count |
{
"type": "object",
"required": [
"niche"
],
"properties": {
"niche": {
"enum": [
"Beauty & Skincare",
"Fitness & Health",
"Food & Cooking",
"Fashion & Style",
"Tech & Gadgets",
"Finance & Business",
"Education & Learning",
"Travel & Adventure",
"Comedy & Entertainment",
"Gaming",
"Lifestyle & Wellness",
"Parenting & Family",
"DIY & Crafts",
"Music & Dance",
"Pets & Animals",
"Sports",
"Motivation & Self-Help",
"SaaS & AI Tools"
],
"type": "string",
"description": "One of the 18 supported niches (Beauty & Skincare, Fitness & Health, Food & Cooking, Fashion & Style, Tech & Gadgets, Finance & Business, Education & Learning, Travel & Adventure, Comedy & Entertainment, Gaming, Lifestyle & Wellness, Parenting & Family, DIY & Crafts, Music & Dance, Pets & Animals, Sports, Motivation & Self-Help, SaaS & AI Tools). Loose names like \"travel\" or \"fitness\" are accepted but pass the canonical form when possible."
},
"query": {
"type": "string",
"description": "Optional angle narrowing within the niche. E.g. niche=\"Fitness & Health\" + query=\"postpartum strength\" returns only postpartum-strength templates, not generic gym. Templates are scored by query-token match against title+description+hashtags; zero-match templates are dropped. Leave empty for niche-wide top templates."
},
"region": {
"type": "string",
"description": "Optional 2-letter ISO country code (US, GB, BR, JP, IN, PH, etc.). Threads to YouTube Search regionCode + TikTok niche query. Reddit niche signals are global and ignore this param. Pass when the user wants templates that resonate with a specific local audience."
},
"window": {
"enum": [
"24h",
"7d",
"30d",
"90d",
"this-month"
],
"type": "string",
"description": "Recency filter. Drops example videos older than the window. Note: TikTok hashtag-corpus rows often lack timestamps and are excluded when window is set — surfaces as a quality warning so callers can decide whether to broaden."
},
"platform": {
"enum": [
"tiktok",
"instagram"
],
"type": "string",
"description": "Platform to source templates from. \"tiktok\" (default) uses the full niche-aggregator (YouTube + Reddit + TikTok hashtags). \"instagram\" (2026-07-06) is keyword-search-only — the Instagram niche-aggregator isn't plumbed yet, so `query` becomes REQUIRED on IG. Output rubric_version signals which path ran: find_viral_template.v1 (main), .v2-keyword-fallback (TikTok fallback), .v3-instagram-keyword-only (IG-only path)."
},
"min_views": {
"type": "integer",
"minimum": 0,
"description": "Optional filter — only return examples above this view count"
}
},
"additionalProperties": false
}| sort |
| string |
| Order the results: verified_first is the default when omitted, listing verified emerging products first and measured-growth products next, then unverified candidates and established comparisons interleaved so neither dominates, buyer-satisfaction risks last. Also: opportunity (same grouping, needs history), rating (highest rated), sold (most cumulative sold), reviews (most reviewed), discount, price_asc, price_desc, momentum, creator_adoption. An unsupported name is rejected, never replaced. History-backed sorts are refused up front when history is unavailable rather than silently falling back. |
| limit | integer | Max products to return. Default 20, hard cap 20. This is a ceiling, not a target — fewer rows means the provider had fewer matching products, never that results were withheld. |
| niche | string | Niche or category to search (e.g. 'Beauty & Skincare', 'Fitness & Wellness'). At least one of niche or query is required. |
| query | string | Free-text product keywords (e.g. 'wireless earbuds'). Widens the search corpus. May be combined with niche. |
| market | string | 2-letter ISO region code (US, GB, BR, ...) or 'GLOBAL'. Defaults to US. Only regions ScrapeCreators covers for TikTok Shop return usable data. |
| category | string | Strict category-breadcrumb filter applied to returned rows (case-insensitive substring). Rows whose category is unknown are dropped when this is set. Distinct from niche, which is a search hint rather than a gate. |
| max_sold | integer | Maximum provider-reported cumulative sold count. Strict: unknown is dropped. |
| min_sold | integer | Minimum provider-reported cumulative sold count. This is a lifetime total, not a sales rate. Strict: unknown is dropped. |
| price_max | number | Maximum price in the market currency. |
| price_min | number | Minimum price in the market currency. |
| max_rating | number | Maximum average rating 0-5. Pair with min_rating to isolate a mid-tier band rather than only top-rated listings. Strict: unknown rating is dropped. |
| min_rating | number | Minimum average rating 0-5. Strict: rows with unknown rating are dropped. |
| max_reviews | integer | Maximum provider-reported review count - the usual way to find products before they are saturated with social proof. Strict: rows whose review count could not be retrieved are dropped rather than assumed to be zero. |
| min_reviews | integer | Minimum provider-reported review count. Review counts are fetched per candidate, so this filter reflects real provider data. Strict: rows whose review count could not be retrieved are dropped rather than assumed to be zero. |
| max_discount | number | Maximum discount percentage 0-100. Strict: unknown is dropped. |
| min_discount | number | Minimum discount percentage 0-100 off the listed original price. Strict: unknown is dropped. |
| min_momentum | number | Minimum momentum component 0-100. Momentum needs stored history; when the history layer has not seen these products yet the request is refused up front with executed:false rather than charged and returned empty. |
| max_saturation | number | Maximum saturation component 0-100. Saturation needs video-to-product linkage that the current pipeline does not extract, so this is accepted for forward compatibility and reported as unsupported rather than silently applied. |
| max_competition | number | Maximum competition tolerated, 0-100, expressed intuitively (lower = less competition accepted). |
| opportunity_stage | string | Comma-separated stages to keep: emerging, promising, crowded, mature, cooling, insufficient_data. Use 'emerging,promising' for the usual 'find breakout products' request. An empty result reports verification_summary.by_status so you can tell a weak category from a restrictive filter; when nothing in the scan could be classified, the empty result is not charged. |
| min_creator_adoption | number | Minimum creator-adoption component 0-100 (distinct creators per day with confirmed showcase links). Needs stored history; cold-start products report insufficient_data for this component. |
{
"type": "object",
"required": [],
"properties": {
"sort": {
"type": "string",
"description": "Order the results: verified_first is the default when omitted, listing verified emerging products first and measured-growth products next, then unverified candidates and established comparisons interleaved so neither dominates, buyer-satisfaction risks last. Also: opportunity (same grouping, needs history), rating (highest rated), sold (most cumulative sold), reviews (most reviewed), discount, price_asc, price_desc, momentum, creator_adoption. An unsupported name is rejected, never replaced. History-backed sorts are refused up front when history is unavailable rather than silently falling back."
},
"limit": {
"type": "integer",
"description": "Max products to return. Default 20, hard cap 20. This is a ceiling, not a target — fewer rows means the provider had fewer matching products, never that results were withheld."
},
"niche": {
"type": "string",
"description": "Niche or category to search (e.g. 'Beauty & Skincare', 'Fitness & Wellness'). At least one of niche or query is required."
},
"query": {
"type": "string",
"description": "Free-text product keywords (e.g. 'wireless earbuds'). Widens the search corpus. May be combined with niche."
},
"market": {
"type": "string",
"description": "2-letter ISO region code (US, GB, BR, ...) or 'GLOBAL'. Defaults to US. Only regions ScrapeCreators covers for TikTok Shop return usable data."
},
"category": {
"type": "string",
"description": "Strict category-breadcrumb filter applied to returned rows (case-insensitive substring). Rows whose category is unknown are dropped when this is set. Distinct from niche, which is a search hint rather than a gate."
},
"max_sold": {
"type": "integer",
"description": "Maximum provider-reported cumulative sold count. Strict: unknown is dropped."
},
"min_sold": {
"type": "integer",
"description": "Minimum provider-reported cumulative sold count. This is a lifetime total, not a sales rate. Strict: unknown is dropped."
},
"price_max": {
"type": "number",
"description": "Maximum price in the market currency."
},
"price_min": {
"type": "number",
"description": "Minimum price in the market currency."
},
"max_rating": {
"type": "number",
"description": "Maximum average rating 0-5. Pair with min_rating to isolate a mid-tier band rather than only top-rated listings. Strict: unknown rating is dropped."
},
"min_rating": {
"type": "number",
"description": "Minimum average rating 0-5. Strict: rows with unknown rating are dropped."
},
"max_reviews": {
"type": "integer",
"description": "Maximum provider-reported review count - the usual way to find products before they are saturated with social proof. Strict: rows whose review count could not be retrieved are dropped rather than assumed to be zero."
},
"min_reviews": {
"type": "integer",
"description": "Minimum provider-reported review count. Review counts are fetched per candidate, so this filter reflects real provider data. Strict: rows whose review count could not be retrieved are dropped rather than assumed to be zero."
},
"max_discount": {
"type": "number",
"description": "Maximum discount percentage 0-100. Strict: unknown is dropped."
},
"min_discount": {
"type": "number",
"description": "Minimum discount percentage 0-100 off the listed original price. Strict: unknown is dropped."
},
"min_momentum": {
"type": "number",
"description": "Minimum momentum component 0-100. Momentum needs stored history; when the history layer has not seen these products yet the request is refused up front with executed:false rather than charged and returned empty."
},
"max_saturation": {
"type": "number",
"description": "Maximum saturation component 0-100. Saturation needs video-to-product linkage that the current pipeline does not extract, so this is accepted for forward compatibility and reported as unsupported rather than silently applied."
},
"max_competition": {
"type": "number",
"description": "Maximum competition tolerated, 0-100, expressed intuitively (lower = less competition accepted)."
},
"opportunity_stage": {
"type": "string",
"description": "Comma-separated stages to keep: emerging, promising, crowded, mature, cooling, insufficient_data. Use 'emerging,promising' for the usual 'find breakout products' request. An empty result reports verification_summary.by_status so you can tell a weak category from a restrictive filter; when nothing in the scan could be classified, the empty result is not charged."
},
"min_creator_adoption": {
"type": "number",
"description": "Minimum creator-adoption component 0-100 (distinct creators per day with confirmed showcase links). Needs stored history; cold-start products report insufficient_data for this component."
}
},
"additionalProperties": false
}| request_id | string | Idempotency key. Reuse the same value when retrying the same save; a different result under the same key is refused. |
| product_url | string | http(s) product page URL |
| input_summary | object | What was asked: handle, platform, topic, product URL. Up to 4 KB. Never include credentials. |
| source_timestamp | string | ISO 8601 time the research ran (the result's as_of / fetched_at when present) |
{
"type": "object",
"required": [
"kind",
"tool_name",
"title",
"result"
],
"properties": {
"kind": {
"enum": [
"creator_analysis",
"hook_score",
"virality_prediction",
"product_scout",
"product_analysis",
"script",
"template"
],
"type": "string",
"description": "creator_analysis (analyze_account), hook_score (score_hook), virality_prediction (predict_virality), product_scout (product_scout), product_analysis (analyze_product), script (viral_remix, match_voice), template (find_viral_template, brief_to_blueprint)"
},
"title": {
"type": "string",
"maxLength": 200,
"description": "Short plain-text title, e.g. \"@handle TikTok analysis\" or the product name"
},
"result": {
"type": "object",
"description": "The structured result of the earlier tool call, exactly as received. Up to 64 KB after server-side allowlisting."
},
"tool_name": {
"type": "string",
"description": "The HookLayer tool that produced the result, e.g. analyze_product"
},
"product_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,64}$",
"description": "Canonical product id for product_analysis / product_scout results"
},
"request_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_.:-]{1,128}$",
"description": "Idempotency key. Reuse the same value when retrying the same save; a different result under the same key is refused."
},
"product_url": {
"type": "string",
"maxLength": 2048,
"description": "http(s) product page URL"
},
"input_summary": {
"type": "object",
"description": "What was asked: handle, platform, topic, product URL. Up to 4 KB. Never include credentials."
},
"source_timestamp": {
"type": "string",
"description": "ISO 8601 time the research ran (the result's as_of / fetched_at when present)"
}
},
"additionalProperties": false
}| string |
| Which platform to search. "tiktok" (default) hits ScrapeCreators TikTok keyword search. "instagram" (2026-07-06) hits Instagram Reels search — note IG upstream ignores region/date_posted params, so region enforcement is client-side only (region_verified_count in the response tells you how many results verifiably matched). |
| min_views | integer | Optional view-count floor. Default 0. |
| product_id | string | Optional TikTok Shop product id. Videos that link this exact product are labelled exact_product_link and listed first; all others stay keyword_match (not verified for this product). |
{
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 20,
"minimum": 1,
"description": "Max videos to return after filtering. Default 12, max 20."
},
"niche": {
"type": "string",
"description": "Optional — only return videos whose description contains niche-related tokens. Loose niche strings work (\"fitness\", \"Beauty & Skincare\")."
},
"query": {
"type": "string",
"description": "Free-text search term. Examples: \"morning routine\", \"iphone case\", \"passive income\"."
},
"region": {
"type": "string",
"description": "ISO country code (US, GB, BR, PH, JP, etc.). Note: corpus coverage varies by region — small regions may return zero results and a degraded quality flag."
},
"window": {
"enum": [
"24h",
"7d",
"30d",
"this-month"
],
"type": "string",
"description": "Recency filter. Maps to the closest ScrapeCreators date bucket AND applies a client-side cutoff for defense-in-depth."
},
"platform": {
"enum": [
"tiktok",
"instagram"
],
"type": "string",
"description": "Which platform to search. \"tiktok\" (default) hits ScrapeCreators TikTok keyword search. \"instagram\" (2026-07-06) hits Instagram Reels search — note IG upstream ignores region/date_posted params, so region enforcement is client-side only (region_verified_count in the response tells you how many results verifiably matched)."
},
"min_views": {
"type": "integer",
"minimum": 0,
"description": "Optional view-count floor. Default 0."
},
"product_id": {
"type": "string",
"pattern": "^[0-9]{10,25}$",
"description": "Optional TikTok Shop product id. Videos that link this exact product are labelled exact_product_link and listed first; all others stay keyword_match (not verified for this product)."
}
},
"additionalProperties": false
}| verified_product_facts | array | Facts the generator is allowed to cite about target_product (e.g. "runs inside ChatGPT and Claude", "14 tools for viral research"). Every specific product claim in the generated script is checked against this list — unsupported claims populate unsupported_claims[] and downgrade quality. If target_product is passed WITHOUT verified_product_facts, the response will land at degraded quality (generation cannot be grounded). |
{
"type": "object",
"anyOf": [
{
"required": [
"source_url"
]
},
{
"required": [
"transcript"
]
}
],
"properties": {
"niche": {
"type": "string",
"description": "Optional niche hint"
},
"my_topic": {
"type": "string",
"description": "DEPRECATED alias for target_topic. Legacy clients only. Normalized internally."
},
"platform": {
"enum": [
"tiktok",
"reels",
"shorts"
],
"type": "string",
"description": "Target platform for the remix. Adjusts pacing and CTA style if provided."
},
"source_url": {
"type": "string",
"description": "TikTok/YouTube/Instagram URL — transcript will be auto-extracted"
},
"transcript": {
"type": "string",
"description": "Pre-extracted transcript (alternative to source_url, faster)"
},
"target_topic": {
"type": "string",
"description": "What the remix should be about. Default: same niche as original."
},
"target_product": {
"type": "string",
"description": "The product the remix should promote. When provided, the generator will NOT invent product names, prices, timelines, features, or customer stories. Combined with verified_product_facts, this forces on-topic + grounded output."
},
"verified_product_facts": {
"type": "array",
"items": {
"type": "string"
},
"description": "Facts the generator is allowed to cite about target_product (e.g. \"runs inside ChatGPT and Claude\", \"14 tools for viral research\"). Every specific product claim in the generated script is checked against this list — unsupported claims populate unsupported_claims[] and downgrade quality. If target_product is passed WITHOUT verified_product_facts, the response will land at degraded quality (generation cannot be grounded)."
}
},
"additionalProperties": false
}