SKILL.md
readonlyread-only
name
firecrawl-agent
description
AI-powered autonomous data extraction that navigates complex sites and returns structured JSON. Use this skill when the user wants structured data from websites, needs to extract pricing tiers, product listings, directory entries, or any data as JSON with a schema. Triggers on "extract structured data", "get all the products", "pull pricing info", "extract as JSON", or when the user provides a JSON schema for website data. More powerful than simple scraping for multi-page structured extraction.
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 的大量擷取






