meta-ads-search
Use when the user wants Meta Ads Library or Facebook ad search results through the local Frevana Chrome Extension-backed tool, including keyword, country, status, and date-range filtering.
How do I install this agent skill?
npx skills add https://github.com/finpeakinc/frevana-skills --skill meta-ads-searchIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill facilitates searching the Meta Ads Library using the Frevana toolset. It includes a setup script that downloads and executes an official configuration script from the vendor's GitHub repository. All external actions are directed towards the vendor's own infrastructure and are standard for this tool's operation.
- Socketwarn
2 alerts: gptSecurity
- Snykfail
Risk: CRITICAL · 3 issues
What does this agent skill do?
Meta Ads Search
Search Meta Ads Library through the local Frevana daemon and Chrome Extension session.
Purpose
This skill is for finding Meta/Facebook ads by keyword or advertiser text using the Chrome Extension-backed Frevana MCP tool frevana_meta_ads_search.
Inputs:
keyword(required) - keyword, advertiser, or brand text to search in Meta Ads Librarycountry(optional) -ALLor an ISO 3166-1 alpha-2 country code such asUS,CN, orGB; defaults toALLactive_status(optional) -active,inactive, orall; defaults toactivedate_from(optional) - inclusive start date inYYYY-MM-DDdate_to(optional) - inclusive end date inYYYY-MM-DDmaxResults(optional) - maximum number of ads to return, defaults to20, max 500timeout(optional) - timeout in milliseconds
Output:
- raw Frevana JSON text containing structured Meta ad records
Summarize the results unless the user asks for the raw output.
What This Skill Needs
- user-provided
keyword - bundled
scripts/setup.shwrapper, which downloads and runs the latest official Frevana setup script - Frevana local daemon running after setup, default port
12306 - Chrome connected through the Frevana Chrome Extension
- Meta Ads Library reachable in the connected Chrome session
curlbashpython3
This is a Chrome Extension skill. It uses the local daemon and Chrome Extension session.
Execution Order
Use this flow:
- Confirm the user has provided
keywordor equivalent advertiser / brand text. - Prefer the script over ad hoc
frevana callcommands. - Default
countrytoALL,active_statustoactive, andmaxResultsto20. Do not invent optional date range or timeout values. - Let the script run bundled
scripts/setup.shbefore every Frevana tool call. - If setup reports Chrome disconnected, stop and tell the user to open Chrome, connect the Frevana extension, and retry.
- Run the Meta Ads search only after setup succeeds.
- If the result looks like login/auth content or Meta Ads Library is unavailable, tell the user they may need an available Chrome session and retry.
- Return a concise summary of the ads, or the raw JSON if requested.
- When useful, save the output to a file.
Commands
Basic keyword search
bash <skill-path>/scripts/search_meta_ads.sh \
--keyword "nike"
--query, --q, and --text are accepted as aliases for --keyword.
Without extra options, this searches active ads in all countries and returns up to 20 ads.
Filter by country and active status
bash <skill-path>/scripts/search_meta_ads.sh \
--keyword "nike" \
--country US \
--active-status active
--active_status is accepted as an alias for --active-status.
Limit date range and result count
bash <skill-path>/scripts/search_meta_ads.sh \
--keyword "nike" \
--date-from 2026-01-01 \
--date-to 2026-06-22 \
--max-results 50
--date_from, --date_to, and --maxResults are accepted as aliases.
Save output to file
bash <skill-path>/scripts/search_meta_ads.sh \
--keyword "nike" \
--output ./out/meta-ads-search-result.json
Fixed Tool Call Shape
The script calls:
frevana call frevana_meta_ads_search '<json_args>'
The JSON arguments always include the default country, active status, and result limit; other optional fields are omitted when not provided:
{
"keyword": "nike",
"country": "ALL",
"active_status": "active",
"maxResults": 20
}
When the user specifies country and result limit, they override those defaults:
{
"keyword": "nike",
"country": "US",
"active_status": "active",
"date_from": "2026-01-01",
"date_to": "2026-06-22",
"maxResults": 50,
"timeout": 120000
}
Do not pass unsupported fields to frevana_meta_ads_search.
Output
- Success: the script prints the Frevana tool result to stdout
- With
--output: the same result is also written to the specified file path - Failure: the script prints the Frevana error or preflight failure to stderr and exits non-zero
Notes
- Require
--keyword,--query,--q, or--text. --countrydefaults toALL; set a two-letter uppercase country code to restrict results to one country.--active-statusdefaults toactive; useinactiveorallonly when the user explicitly requests it.--date-fromand--date-tomust useYYYY-MM-DD.--max-resultsdefaults to20and must be an integer from 1 through 500.--timeoutmust be a positive integer when provided.- The script runs bundled
scripts/setup.shbefore every search, matching the original Frevana skill flow. scripts/setup.shdownloads and executes the latest official setup script fromhttps://raw.githubusercontent.com/FinpeakInc/frevana-cli-releases/refs/heads/main/skills/frevana/scripts/setup.sh.- If
frevanais missing, the official setup script installs the Frevana binary before starting/checking the daemon.
Example Prompts
中文
- "查一下 Meta Ads Library 里 nike 的广告"
- "搜索 Facebook 广告库里关于 openai 的广告,美国区,只看 active"
- "查 meta ads,关键词 shopify,限制 2026-01-01 到 2026-06-22,保存原始 JSON"
English
- "Search Meta Ads Library for nike ads"
- "Find active Meta ads for openai in the US"
- "Search Meta ads for shopify between 2026-01-01 and 2026-06-22 and save the raw JSON"
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/finpeakinc/frevana-skills/meta-ads-search">View meta-ads-search on skillZs</a>