SKILL.md
readonly只读
name
firecrawl-agent
description
AI驱动的自主数据提取,可导航复杂网站并返回结构化JSON。当用户需要从网站提取结构化数据、获取定价层级、产品列表、目录条目或任何带JSON schema的数据时使用此技能。触发词包括“提取结构化数据”、“获取所有产品”、“拉取定价信息”、“提取为JSON”,或用户提供网站数据的JSON schema。比简单的爬取更适合多页面结构化提取。
firecrawl agent
AI驱动的自主提取。代理会导航网站并提取结构化数据(耗时2-5分钟)。
何时使用
- 你需要从复杂的多页面网站获取结构化数据
- 手动爬取需要导航多个页面
- 你希望AI自动找到数据所在位置
快速开始
# 提取结构化数据
firecrawl agent "extract all pricing tiers" --wait -o .firecrawl/pricing.json
# 使用JSON schema进行结构化输出
firecrawl agent "extract products" --schema '{"type":"object","properties":{"name":{"type":"string"},"price":{"type":"number"}}}' --wait -o .firecrawl/products.json
# 聚焦特定页面
firecrawl agent "get feature list" --urls "<url>" --wait -o .firecrawl/features.json
选项
| 选项 | 描述 |
|---|---|
--urls <urls> |
代理的起始URL |
--model <model> |
使用的模型:spark-1-mini 或 spark-1-pro |
--schema <json> |
结构化输出的JSON schema |
--schema-file <path> |
JSON schema文件路径 |
--max-credits <n> |
本次代理运行的信用额度上限 |
--wait |
等待代理完成 |
--pretty |
美化打印JSON输出 |
-o, --output <path> |
输出文件路径 |
提示
- 始终使用
--wait以获取内联结果。否则只返回一个任务ID。 - 使用
--schema获得可预测的结构化输出——否则代理返回自由格式数据。 - 代理运行比简单爬取消耗更多信用额度。使用
--max-credits限制花费。 - 对于简单的单页面提取,推荐使用
scrape——更快更便宜。
另请参阅
- firecrawl-scrape — 更简单的单页面提取
- firecrawl-interact — 爬取+交互,用于手动页面操作(更多控制)
- firecrawl-crawl — 无AI的批量提取






