用途:抓取一个或多个 URL,返回干净、面向 LLM 优化的 Markdown,支持静态页面与 JS 渲染的 SPA,多 URL 并发抓取。
主要能力与用法: 基本提取:firecrawl scrape "<url>" -o .firecrawl/page.md 仅正文(去导航/页脚):firecrawl scrape "<url>" --only-main-content -o .firecrawl/page.md 等待 JS 渲染:firecrawl scrape "<url>" --wait-for 3000 -o .firecrawl/page.md 多 URL(仅 Markdown,各自保存到 .firecrawl/,忽略 -o):firecrawl scrape https://example.com https://example.com/blog https://example.com/docs 同时获取 Markdown 与链接:firecrawl scrape "" --format markdown,links -o .firecrawl/page.json 就页面提问:firecrawl scrape "https://example.com/pricing" --query "What is the enterprise plan price?" 完整选项见 firecrawl scrape --help。
要点:优先用普通抓取而非 --query,先存文件再用 grep、head 或直接阅读 Markdown 自行检索推理;--query 仅在需要单一针对性答案且不保存页面时使用(额外消耗 5 个积分)。页面需要点击、填表、翻页等交互或抓取遗漏内容时,改用 interact。多 URL 并发受并发上限限制,可用 firecrawl --status 查看;该模式仅保存 Markdown 并忽略 -o,其他格式会被丢弃;若未请求 Markdown,则整个 JSON 响应写入 .md 文件。单一格式输出原始内容,多格式(如 --format markdown,links)输出 JSON。URL 始终加引号,避免 shell 将 ? 和 & 视为特殊字符。命名约定:.firecrawl/{site}-{path}.md。
相关技能:firecrawl-search(无 URL 时查找页面)、firecrawl-interact(抓取无法获取内容时交互)、firecrawl-download(整站批量下载到本地)、firecrawl-build-scrape(将抓取集成进应用)。
限制:资料未提供收费、价格、平台支持范围等细节。