firecrawl-search
GitHub支持网页搜索、内容抓取及学术文献检索的 Skill。涵盖通用搜索、开发者资料(GitHub/文档)及生物医学论文查询,提供 JSON 结果与全文 Markdown,适用于信息发现与研究场景。
Trigger Scenarios
Install
npx skills add firecrawl/cli --skill firecrawl-search -g -y
SKILL.md
Frontmatter
{
"name": "firecrawl-search",
"description": "Web search with full page content extraction, plus routing to Firecrawl's research paper index. Use this skill whenever the user asks to search the web, find articles, research a topic, look something up, find recent news, discover sources, or says \"search for\", \"find me\", \"look up\", \"what are people saying about\", or \"find articles about\". Also use it for scientific literature — finding papers, studies, trials, or preprints on PubMed, bioRxiv, medRxiv, or arXiv. Returns real search results with optional full-page markdown — not just snippets. Provides capabilities beyond Claude's built-in WebSearch.\n",
"allowed-tools": [
"Bash(firecrawl *)",
"Bash(npx firecrawl-cli *)"
]
}
firecrawl search
Web search with optional content scraping. Returns search results as JSON, optionally with full page content.
When to use
- You don't have a specific URL yet
- You need to find pages, answer questions, or discover sources
- You need research papers — see Paper search, which routes to
firecrawl research, not tosearch --categories research - First step in the workflow escalation pattern: search → scrape → map + scrape → crawl → monitor → interact
Quick start
# Basic search
firecrawl search "your query" -o .firecrawl/result.json --json
# Search and scrape full page content from results
firecrawl search "your query" --scrape -o .firecrawl/scraped.json --json
# News from the past day
firecrawl search "your query" --sources news --tbs qdr:d -o .firecrawl/news.json --json
# Programming question: search GitHub issues, merged PRs, READMEs, and docs
firecrawl search "your query" --categories developer -o .firecrawl/developer.json --json
# Research papers: use the paper index, NOT `search --categories research`
firecrawl research search-papers "your query" -o .firecrawl/papers.json --json
Developer search
--categories developer adds an index built for coding agents. It covers GitHub
issues, merged pull requests, repository READMEs, and curated documentation
sites. Use it for a programming question: an error message, an API contract, a
library behaviour, or a known bug.
The hits arrive in their own data.developer group beside data.web. Each hit
holds url, title, and description, where description is the matched
passage. Read the passages with
jq -r '.data.developer[] | .url, .description' .firecrawl/developer.json.
The dedicated firecrawl developer command searches only that index and keeps
the full matched passages:
# Developer search only, with full passages
firecrawl developer "your query" --limit 10 -o .firecrawl/developer.json --json
Each result holds id, type (issue, pull_request, readme, doc),
url, title, and passages. Read them with
jq -r '.results[] | .url, .passages[].text' .firecrawl/developer.json.
Paper search
--categories research is not the paper index. It only narrows ordinary web
results to research-affiliated websites (a short domain allowlist). For actual
papers use the firecrawl research command group, which searches roughly 43M
abstracts, around 90% biomedical (PubMed, bioRxiv, medRxiv) plus arXiv.
Reach for it on any biomedical, clinical, or scientific-literature question instead of web-searching or scraping PubMed, bioRxiv, medRxiv, or Google Scholar by hand:
# Find papers by topic -- start here, and run several distinct framings
firecrawl research search-papers "CRISPR base editing off-target effects" \
--limit 20 -o .firecrawl/papers.json --json
# Expand from your strongest hits along the citation graph
firecrawl research related-papers pmid:40953549 --intent "in vivo delivery" \
-o .firecrawl/papers-related.json --json
# Verify a specific claim against the full text before you cite it
firecrawl research read-paper pmcid:PMC12530322 --question "What was the sample size?" \
-o .firecrawl/paper-passages.json --json
Paper ids accept pmid:, pmcid:, doi:, and arxiv: forms. inspect-paper
returns canonical metadata for one id. Read hits with
jq -r '.results[] | .primaryId, .title' .firecrawl/papers.json.
See firecrawl for how paper search fits the overall command routing.
Options
| Option | Description |
|---|---|
--limit <n> |
Max number of results |
--sources <web,images,news> |
Source types to search |
--categories <github,research,pdf,developer> |
Filter by category. research = research-affiliated websites (see Paper search for the actual paper index); developer = the coding-agent index |
--tbs <qdr:h|d|w|m|y> |
Time-based search filter |
--location |
Location for search results |
--country <code> |
Country code for search |
--scrape |
Also scrape full page content for each result |
--scrape-formats |
Formats when scraping (default: markdown) |
--highlights / --no-highlights |
Query-relevant excerpts vs. original snippets |
-o, --output <path> |
Output file path |
--json |
Output as JSON |
Tips
--highlightson by default: results are query-relevant excerpts, not full-page snippets. Use--no-highlightsfor the original snippets.--scrapefetches full content — don't re-scrape URLs from search results. This saves credits and avoids redundant fetches.- Always write results to
.firecrawl/with-oto avoid context window bloat. - Use
jqto extract URLs or titles:jq -r '.data.web[].url' .firecrawl/search.json - Naming convention:
.firecrawl/search-{query}.jsonor.firecrawl/search-{query}-scraped.json
Send feedback after every search (refunds 1 credit)
Search costs 2 credits. After you've actually used the results (or decided they were useless), send structured feedback with firecrawl search-feedback <id>. The first feedback per search refunds 1 credit and helps us improve search quality. Do this once per search, in the background, after you finish processing the results — it does not block your main task.
Opt out: if FIRECRAWL_NO_SEARCH_FEEDBACK=1 (or FIRECRAWL_DISABLE_SEARCH_FEEDBACK=1) is set, the CLI silently skips the call and never sends anything. Respect that — do not try to work around it. (Team admins can also disable this server-side; the API will return feedbackErrorCode: "TEAM_OPTED_OUT" and the CLI will exit 0 silently.)
Rules to know before you call this:
- Time window: must be sent within ~2 minutes of the search. Late feedback is rejected.
--missing-contentis the most important field. It's a list of specific pieces of content you expected but did not find. One topic per entry — do not pack multiple topics into one string. These aggregate across teams and tell us what to index next.- Substantive content required (zero-effort feedback is rejected with HTTP 400):
good→ must include at least one--valuable-sourcesentry.partial→ must include--valuable-sourcesor--missing-content.bad→ must include--missing-contentor--query-suggestions.
- Daily refund cap (per team, per UTC day, default 100 credits). Once your team has been refunded 100 credits today, further submissions still record feedback but no longer refund credits. The response includes
creditsRefundedToday/dailyRefundCap/dailyCapReached. WhendailyCapReached: true, stop callingsearch-feedbackfor the rest of the UTC day — it won't refund anything and you're wasting bandwidth. - Idempotent: re-submitting for the same search id returns success but no extra refund.
--silent &is the right pattern — exit code 0 even on failure, so a rejected/expired call never crashes your pipeline.
Verify the search returned results before reading its id. Zero-result searches write no output file, so the file may be missing — or left over from an earlier search. The guard below skips feedback when the file is missing or has zero results; call search-feedback only inside it:
# Send once per search. Rate honestly and replace the placeholder with the
# rating that matches what actually happened. The two fields shown
# satisfy the substantive-content rule for every rating.
if SEARCH_ID=$(jq -er 'select(any(.data[]; length > 0)) | .id' .firecrawl/search-react-hooks.json); then
firecrawl search-feedback "$SEARCH_ID" \
--rating "<good|partial|bad>" \
--valuable-sources '[{"url":"https://react.dev/reference/react/hooks","reason":"Most authoritative"}]' \
--missing-content '[{"topic":"useDeferredValue","description":"No example of useDeferredValue with Suspense"}]' \
--silent &
fi
--missing-content accepts:
- JSON array of
{topic, description?}objects (richest, preferred) "topic: description"strings (shorthand)- Plain
"topic1, topic2, topic3"(when you only have topic names) - Repeated
--missing-contentflags
--silent suppresses output and & runs it in the background so feedback never blocks you.
See also
- firecrawl-scrape — scrape a specific URL
- firecrawl-map — discover URLs within a site
- firecrawl-crawl — bulk extract from a site
Version History
-
253abde
Current 2026-08-19 19:06
更新反馈示例以兼容所有评分,修复链接标签并优化技能重命名后的路径引用。
-
23a0df4
2026-08-16 02:02
修正了关于研究论文索引的描述,明确其包含PubMed/bioRxiv/medRxiv及arXiv数据,并修复了文档中错误引导使用普通搜索而非专用命令的问题。
-
a151277
2026-08-02 21:17
新增开发者专属搜索功能:在 search 命令中增加 --categories developer 选项,并新增独立的 firecrawl developer 命令,专门用于搜索 GitHub Issues、PRs、README 及文档,优化编程相关问题的检索体验。
- 6c50c5d 2026-07-24 11:50


