crw-parse
/crw-parse
Parse a local or remote FILE (PDF) into markdown or structured JSON with fastCRW. Use when the source is a file on disk — "parse this PDF", "extract text from this document", "read this report", "convert PDF to markdown". Routing rule: URL → use crw-scrape; file on disk → use crw-parse. Step 5 of the crw workflow ladder.
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
AGPL-3.0, copyleft: przeróbki udostępniane innym muszą mieć tę samą licencję.
What it does and when to use it
Parse a local or remote FILE (PDF) into markdown or structured JSON with fastCRW. Use when the source is a file on disk — "parse this PDF", "extract text from this document", "read this report", "convert PDF to markdown". Routing rule: URL → use crw-scrape; file on disk → use crw-parse. Step 5 of the crw workflow ladder.
Triggers from the description
Original author description
Parse a local or remote FILE (PDF) into markdown or structured JSON with fastCRW. Use when the source is a file on disk — "parse this PDF", "extract text from this document", "read this report", "convert PDF to markdown". Routing rule: URL → use crw-scrape; file on disk → use crw-parse. Step 5 of the crw workflow ladder.
How it works
- When to use
- Quick start
- Options
- Honest gaps
- Tips
- See also
SKILL.md preview
---
name: crw-parse
description: |
Parse a local or remote FILE (PDF) into markdown or structured JSON with
fastCRW. Use when the source is a file on disk — "parse this PDF", "extract
text from this document", "read this report", "convert PDF to markdown".
Routing rule: URL → use crw-scrape; file on disk → use crw-parse. Step 5
of the crw workflow ladder.
license: AGPL-3.0
metadata:
author: us
version: "0.3.0"
homepage: https://fastcrw.com
repository: https://github.com/fastcrw/crw
allowed-tools: Bash(crw:*) Bash(curl:*) Read
---
# crw-parse — local file extraction
## When to use
- The source is a **file on disk** (PDF), not a web page.
- Step 5 in the [crw ladder](../crw/SKILL.md). If you have a URL, use
[crw-scrape](../crw-scrape/SKILL.md) (step 2) instead — scrape handles remote
PDFs via URL. If you want a typed JSON object from a page, see
[crw-extract](../crw-extract/SKILL.md) (step 6).
- PDF only. DOCX, XLSX, and other office formats are **not yet supported**
(unlike Firecrawl's document endpoint). If you have a non-PDF document,
convert it to PDF first or use an external tool.
## Quick start
**CLI** — `crw scrape` auto-detects a local file path and routes to the PDF
parser; there is no separate `crw parse` subcommand:
```bash
crw scrape report.pdf # → markdown to stdout
crw scrape report.pdf --format json --extract '{"type":"object","properties":{"title":{"type":"string"}}}' -o out.json
```
**MCP** (inside an agent harness):
```
crw_parse_file(
contentBase64="<base64-encoded PDF bytes>",
filename="report.pdf",
formats=["markdown"],
maxLength=0
# For structured JSON output:
# formats=["json"],
# jsonSchema={"type":"object","properties":{"title":{"type":"string"}}}
)
```
**REST** — multipart upload, 50 MB limit, PDF only:
```bash
curl -X POST "$CRW_API_URL/v2/parse" \
-H "Authorization: Bearer $CRW_API_KEY" \
-F "file=@report.pdf" \
-F 'options={"formats":["markdown"]}'
```
## Options
| Need | CLI (`crw scrape <path>`) | MCP field | REST `options` field |
|------|--------------------------|-----------|----------------------|
| Output format | `--format markdown\|json\|text\|links` | `formats` | `formats` |
| Structured JSON | `--extract '<schema>'` | `jsonSchema` + `formats:["json"]` | `jsonSchema` + `formats:["json"]` |
| AI summary | `--summary` | `formats:["summary"]` | `formats:["summary"]` |
| Summary prompt | `--prompt "TEXT"` | — | `summaryPrompt` |
| Limit output chars | — | `maxLength` (0 = unbounded) | `maxContentChars` |
| Force parser | — | `parsers:["pdf"]` | `parsers:["pdf"]` |
Formats `json` and `summary` require a server-side LLM configured in
`[extraction.llm]` of the server config (or via `crw setup` for the CLI).
## Honest gaps
- **PDF only.** The server rejects anything without a `%PDF-` magic header.
- **No OCR.** Scanned/image-only PDFs have no extractable text layer; they
return empty markdown with a warning. There is no `attempt_scanned` option —
scanned PDFs are a known gap.
- **50 MB cap** on REST uploads (per-route hard limit). The CLI passes bytes
in-process, so it shares the same underlying limit.
- **LLM required for `json`/`summary`.** Without a configured LLM the request
returns a 400.
## Tips
- **Read the result, don't stream it.** For large PDFs, write to `.crw/` and
`grep`/`head` the output: `crw scrape big.pdf -o .crw/big.md`.
- **MCP requires base64.** Read the file in your agent, base64-encode the bytes,
pass as `contentBase64`. The `filename` field is optional but helps with
error messages.
- **Scanned PDFs return empty markdown — no warning field.** If the PDF has no
extractable text layer, the REST response returns empty markdown with no
`warning` field in the envelope. A warning (e.g. `warning: pdf_partial_text`)
only appears on the CLI's stderr, never in the REST/MCP response. If you get
empty markdown, assume a scanned/image-only PDF and handle it at call-site.
## See also
- [crw-scrape](../crw-scrape/SKILL.md) — fetch a URL (including a remote PDF
served over HTTP)
- [crw-extract](../crw-extract/SKILL.md) — typed JSON object from a page against
a schema
- [crw](../crw/SKILL.md) — ladder overview and routing rules
Versions
The database has no other skills named crw-parse.
Database snapshot: 13.11.2026 · package version 2cdda0be9c77 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 4 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100crw-scrape
Scrape a single known URL into clean markdown / HTML / links / structured JSON with fastCRW. Use when you already have the URL and want the page content — "scrape", "grab", "fetch", "pull", "read this page", "get the content of". Handles JavaScript-rendered SPAs automatically.… - 100crw-extract
Extract a typed JSON object from one or more web pages against a JSON Schema with fastCRW. Use when you need structured data — "get the price and stock status", "extract all job listings as JSON", "pull structured fields from this page". Step 6 of the crw workflow ladder. - 100firecrawl-parse
Convert a local file (PDF, DOCX, XLSX, HTML, …) to markdown, or answer questions about its content. Use whenever the input is a file path, not a URL. - 100md-to-pdf
Convert any markdown file to a clean PDF. Use when asked to make a PDF from a .md file, export a document, or convert markdown to PDF. - 100to-markdown
Convert any file or URL to clean Markdown: PDF, DOCX, XLSX, PPTX, HTML, images (OCR), audio, CSV, YouTube. Optimised for LLM pipelines. Triggers on: "convert to markdown", "extract text from PDF", "parse this document", "ingest for RAG". - 100markdown-to-pdf
Convert a markdown file to PDF using mistune + reportlab. Use when the user wants to convert a .md file to PDF, or when another skill needs to produce a PDF from markdown output.