Agent Skillsfirecrawl/cli › firecrawl-scrape

firecrawl-scrape

GitHub

从指定URL提取网页内容并转换为干净的Markdown格式,支持JS渲染页面及多URL并发抓取。适用于需要获取网页结构化文本的场景,优于通用WebFetch工具。

skills/firecrawl-scrape/SKILL.md firecrawl/cli

Trigger Scenarios

用户提供URL并要求提取网页内容 需要将网页内容转化为Markdown以便LLM处理

Install

npx skills add firecrawl/cli --skill firecrawl-scrape -g -y
More Options

Use without installing

npx skills use firecrawl/cli@firecrawl-scrape

指定 Agent (Claude Code)

npx skills add firecrawl/cli --skill firecrawl-scrape -a claude-code -g -y

安装 repo 全部 skill

npx skills add firecrawl/cli --all -g -y

预览 repo 内 skill

npx skills add firecrawl/cli --list

SKILL.md

Frontmatter
{
    "name": "firecrawl-scrape",
    "description": "Extract a URL's content as clean markdown, including JS-rendered pages. Use whenever the user provides a URL and wants its content; prefer over WebFetch.\n",
    "allowed-tools": [
        "Bash(firecrawl *)",
        "Bash(npx firecrawl-cli *)"
    ]
}

firecrawl scrape

Scrape one or more URLs. Returns clean, LLM-optimized markdown. Multiple URLs are scraped concurrently.

Quick start

# Basic markdown extraction
firecrawl scrape "<url>" -o .firecrawl/page.md

# Main content only, no nav/footer
firecrawl scrape "<url>" --only-main-content -o .firecrawl/page.md

# Wait for JS to render, then scrape
firecrawl scrape "<url>" --wait-for 3000 -o .firecrawl/page.md

# Multiple URLs (markdown only; each saved to .firecrawl/; -o is ignored)
firecrawl scrape https://example.com https://example.com/blog https://example.com/docs

# Get markdown and links together
firecrawl scrape "<url>" --format markdown,links -o .firecrawl/page.json

# Ask a question about the page
firecrawl scrape "https://example.com/pricing" --query "What is the enterprise plan price?"

Run firecrawl scrape --help for the full option list.

Done when: you have the scraped content — on stdout, in your -o file, or under .firecrawl/ for multi-URL scrapes — and have inspected it with bounded reads (head, grep) to answer the request.

Tips

  • Prefer plain scrape over --query. Scrape to a file, then use grep, head, or read the markdown directly — you can search and reason over the full content yourself. Use --query only when you want a single targeted answer without saving the page (costs 5 extra credits).
  • Scrape handles static pages and JS-rendered SPAs. Escalate to interact when the page needs interaction (clicks, form fills, pagination) or scrape misses content.
  • Multiple URLs are scraped concurrently — check firecrawl --status for your concurrency limit. This mode saves markdown only and ignores -o; other requested formats are dropped. If markdown wasn't requested, the whole JSON response is written into the .md file.
  • Single format outputs raw content. Multiple formats (e.g., --format markdown,links) output JSON.
  • Always quote URLs — shell interprets ? and & as special characters.
  • Naming convention: .firecrawl/{site}-{path}.md

See also

Version History

  • 86aaf06 Current 2026-08-27 16:51

    重构技能文档结构:移除冗余选项表,替换为帮助命令指引;删除重复的适用场景说明;重写指令为正向表述;新增明确的完成标准(Done when);拆分监控相关职责。

  • 253abde 2026-08-19 19:06

    修复-H参数描述错误,澄清多URL抓取时非Markdown格式的处理逻辑,并修正相关文档中的行为声明。

  • 6c50c5d 2026-07-24 11:49

Same Skill Collection

skills/firecrawl-agent/SKILL.md
skills/firecrawl-crawl/SKILL.md
skills/firecrawl-developer-index/SKILL.md
skills/firecrawl-download/SKILL.md
skills/firecrawl-interact/SKILL.md
skills/firecrawl-map/SKILL.md
skills/firecrawl-monitor/SKILL.md
skills/firecrawl-parse/SKILL.md
skills/firecrawl-search/SKILL.md
skills/firecrawl/SKILL.md
skills/firecrawl-cli/SKILL.md
skills/firecrawl-research-index/SKILL.md

Metadata

Files
0
Version
86aaf06
Hash
46ba76f6
Indexed
2026-07-24 11:49

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 05:58
浙ICP备14020137号-1 $Carte des visiteurs$