Agent Skill
Firecrawl scrape
Reads a known web page as clean Markdown or structured JSON through the Firecrawl CLI, including JS rendering, batch URLs and schema extraction.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkInstall
Commands are pinned to commit 1d4b072, the version we read, wherever the install method supports it.
npx skills
npx skills add firecrawl/skills@1d4b0728d0f448cafef2eb8370c907fde7cb6f42 --skill firecrawl-scrape -a claude-codeCopies the skill into .claude/skills/ in this project, pinned to the reviewed commit.
Plugin marketplace
/plugin marketplace add firecrawl/skills
/plugin install firecrawl@firecrawl-skillsRun inside Claude Code. Installs the whole firecrawl plugin from its default branch, not the pinned commit.
npx skills
npx skills add firecrawl/skills@1d4b0728d0f448cafef2eb8370c907fde7cb6f42 --skill firecrawl-scrape -a codexInstalls to .agents/skills/, which Codex scans from the working directory up to the repo root.
npx skills
npx skills add firecrawl/skills@1d4b0728d0f448cafef2eb8370c907fde7cb6f42 --skill firecrawl-scrape -a cursorInstalls to .agents/skills/, one of the folders Cursor reads skills from.
gh skill
gh skill install firecrawl/skills skills/core/firecrawl-scrape --pin 1d4b0728d0f448cafef2eb8370c907fde7cb6f42 --agent github-copilotNeeds GitHub CLI 2.90.0 or later. Use --scope user to install for every repository.
npx skills
npx skills add firecrawl/skills@1d4b0728d0f448cafef2eb8370c907fde7cb6f42 --skill firecrawl-scrapePinned to the commit we reviewed. The CLI asks which agents to install for; add -g to install for your user instead of this project.
What it does
Covers the scrape side of the Firecrawl CLI: extract a page as Markdown (main content by default), wait for JavaScript, get links, ask a question about a page, extract structured JSON with a schema, and run batch jobs over many URLs. A reference file covers handling large results.
When to use it
Reading a known web page as clean Markdown for the agent: documentation, an article, a product page or a changelog. It handles JavaScript-heavy pages, can extract structured JSON against a schema, and batch-scrapes a list of URLs. It is the step after search in our research with checkable sources workflow.
Asking a question about a page, or extracting JSON against a schema, keeps the full page out of the agent’s context, which saves tokens on long documentation pages.
When to skip it
Pages behind a login or that need clicks and form input, where a browser automation skill such as playwright-cli fits better. And sites whose terms forbid scraping.
Try it
Scrape https://docs.example.com/changelog and extract every release
from the last six months as JSON with version, date and a one-line
summary. Save it to .firecrawl/changelog.json.
What it can touch
- Bundles scripts
- No
- Pre-approved tools
- Bash(firecrawl *) Bash(npx firecrawl-cli *)
- Needs
- Firecrawl CLI; A Firecrawl API key; Network access
- Client-specific fields
- None, spec fields only
Its instructions steer what your agent does, and it may have changed since the commit we read. How to check a skill.
Pages you scrape go through Firecrawl’s service and count against your plan. allowed-tools is written as a YAML list rather than the spec’s space-separated string, and pre-approves npx firecrawl-cli, which is unpinned.
At commit 1d4b072 the SKILL.md is 146 lines long. Alongside it:
references/(1 entry)
Alternatives
Firecrawl search to find pages first and Firecrawl crawl for a whole site section. See the Firecrawl tool page for plans and limits.
SKILL.md
The file exactly as published at the reviewed commit, reproduced under its ISC licence.
---
name: firecrawl-scrape
description: Read a known webpage or execute a discovered workflow or data-provider capability. Use for page content or structured results once the URL or tool is selected.
allowed-tools:
- Bash(firecrawl *)
- Bash(npx firecrawl-cli *)
---
# firecrawl scrape
Read a URL for page content, or execute a selected provider tool for structured data. Discover tools with `search` and inspect their inputs with `list` before execution. Multiple URLs can be scraped concurrently.
For structured datasets, first check for a suitable workflow or data provider using the [search skill](../firecrawl-search/SKILL.md). Read a known page directly; reuse a selected contract instead of repeating discovery.
## Quick start
```bash
# Basic markdown extraction
firecrawl scrape "<url>" -o .firecrawl/page.md
# Keep the whole page, including nav/footer (main content only is the default)
firecrawl scrape "<url>" --full-page -o .firecrawl/page.md
# Wait for JS to render, then scrape
firecrawl scrape "<url>" --wait-for 3000 -o .firecrawl/page.md
# A few 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:** the page content or provider result has been checked for errors and inspected in bounded sections to answer the request. Preserve source links and disclose partial results.
## Structured JSON from a page
Pass a JSON schema with the `json` format to get typed fields instead of markdown:
```bash
firecrawl scrape "<url>" --format json \
--schema '{"type":"object","properties":{"plan":{"type":"string"},"price":{"type":"string"}},"required":["plan"]}' \
-o .firecrawl/pricing.json
# Large schemas: keep them in a file
firecrawl scrape "<url>" --format json --schema-file schema.json -o .firecrawl/page.json
```
The result is under `.json` in the output. `--schema` only applies when `json` is in `--format`; add other formats with commas (`--format markdown,json`). For the same schema across many URLs, use `batch-scrape --schema` below.
## Many known URLs
Use `firecrawl batch-scrape` for a list of known URLs when you need formats other than markdown, JSON extraction, a webhook, or a job you can check later. Keep the multi-URL `scrape` above for a few pages of markdown.
```bash
# Start a job (prints a job ID), then check it later
firecrawl batch-scrape https://example.com/a https://example.com/b
firecrawl batch-scrape <job-id>
# Wait and save every document as JSON (urls.txt: one URL per line, # comments ok)
firecrawl batch-scrape --urls-file urls.txt --format markdown,links --wait -o .firecrawl/batch.json
# Same extraction for every URL (--schema or --prompt adds the json format)
firecrawl batch-scrape --urls-file urls.txt --wait \
--schema '{"type":"object","properties":{"title":{"type":"string"}}}' -o .firecrawl/batch.json
```
Results are in `.data[]`, one document per URL with `metadata.sourceURL`. Add `--webhook <url>` to get notified, `--ignore-invalid-urls` to skip bad entries, and `--cancel` with a job ID to stop a job. Run `firecrawl batch-scrape --help` for all options.
## Find tools, inspect inputs, and get help
Use the CLI help to check supported options rather than guessing:
```bash
firecrawl search --help
firecrawl list --help
firecrawl scrape --help
```
Domain discovery with `--domain-tools` returns tool summaries by default. Add `--tool-detail full` for contracts upfront, or inspect one selected tool with `list` as shown below. Use `--tool-detail compact` for only provider, capability and description; inspect by those two IDs with `list`. Summary remains the default. Prefer full when several related contracts will be needed immediately.
For structured data, search for the task, inspect a matching tool's contract, then execute with the exact input fields it declares:
```bash
# Web + domain matching + semantic tools
firecrawl search '<user question>'
# Semantic tools only
firecrawl search alexandria '<user question>'
# Categories → providers → tools → contract
firecrawl list
firecrawl list <category-id> --category
firecrawl list <provider-id>
firecrawl list <provider-id> <capability-id> --pretty
# Execute a tool
firecrawl scrape <provider-id>/<capability-id> --options '<JSON matching the selected contract>'
```
Normal search includes web results and tool matches; `search alexandria` searches tools only. `list <provider> <capability> --pretty` shows the selected contract; use `--json` for machine-readable output. To browse progressively, use `list`, then `list <category> --category`, then `list <provider>`. Search and list do not execute the selected provider tool. Read only the contracts needed for the task; use returned identifiers rather than guessing them.
Read the expanded contract before building inputs or parsing results:
- `required: true` requires that input; each `requiresOneOf` group requires at least one member, not all of them.
- Selected-contract inspection already requests examples. Read the singular `example.request` and `example.response` when present; an empty request can be valid for tools with optional inputs.
- `response.key` identifies the records field inside `data.alexandria[i].data`; an empty key means that data object itself. Do not assume every provider returns `records`.
- Provider pagination differs from catalogue `next`: use the contract's continuation input and the returned page/cursor, preserve filters, and stop at its exhaustion signal. `paginated: true` alone does not specify that mapping.
## Execution and large results
URL scraping does not execute provider tools automatically. Use exact discovered input fields and resolve record IDs with lookup tools rather than inventing them. Check each `data.alexandria[]` result for errors, not just the outer success flag.
If the client reports an output/context limit, the upstream request may have succeeded. Preserve the request or scrape ID and recover the retained result before repeating the provider call. For large datasets and PDFs, save output with `--json -o` when a local filesystem is available and inspect bounded sections with `jq` or other file tools. Keep stderr separate from JSON stdout; do not merge streams with `2>&1` when piping to a JSON parser. Where remote processing is preferable, use `firecrawl scrape firecrawl/bash` to select from a retained result. Read [large-result recovery](references/large-results.md) for IDs, command examples, expiry, and errors. This is explicit recovery, not automatic overflow detection.
## PDFs and page budgets
PDFs cost 1 credit per parsed page. Use `--max-pages` (an integer from 1 to 10000) to limit PDF parsing, especially for large or unknown documents:
```bash
firecrawl scrape "https://example.com/report.pdf" --max-pages 5 --json -o .firecrawl/report.json
```
The cap applies to each PDF, not the whole command or total credits. Extra formats and options can add charges. The CLI does not quote page counts or costs before execution. Use JSON output to inspect the returned `metadata.numPages` (parsed), `metadata.totalPages` (document total), and `metadata.creditsUsed` when present; a smaller parsed count means the result is partial.
## 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. Use `batch-scrape` when you need other formats or JSON extraction.
- 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
- [firecrawl-search](../firecrawl-search/SKILL.md) — find pages when you don't have a URL
- [firecrawl-interact](../firecrawl-interact/SKILL.md) — when scrape can't get the content, use `interact` to click, fill forms, etc.
- [firecrawl-download](../firecrawl-download/SKILL.md) — bulk download an entire site to local files
- [firecrawl-build-scrape](https://github.com/firecrawl/skills/tree/main/skills/build/firecrawl-build-scrape) — building scrape into an app instead of running it hereRelated skills
agent-browser
A discovery stub for Vercel's agent-browser CLI: it tells the agent to load the version-matched usage guide from the installed CLI before automating.
Browser traffic to OpenAPI (Browserbase)
Turns a browser-trace capture of a website into a best-effort OpenAPI 3.1 spec: pairs requests with responses, templates URLs, infers schemas, writes a report.
Firecrawl crawl (Firecrawl)
Firecrawl's skill that crawls a site or one section of it with the Firecrawl CLI and saves every page as clean content. Uses credits per page, so scope it.
Guides and recipes that use Firecrawl scrape
- Research competitors with AI and sources you can check
Competitor analysis with AI that holds up: set a comparison grid, take each fact from a page you can link, archive the pages, then write a dated one-page brief.
- Research a topic with sources you can check
Research a topic with AI search and keep every claim checkable: build a source list, open and log each source, draft from the log, then add limits and a date.