Loading...
Loading...
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.
npx skill4agent add us/crw crw-parsecrw scrapecrw parsecrw scrape report.pdf # → markdown to stdout
crw scrape report.pdf --format json --extract '{"type":"object","properties":{"title":{"type":"string"}}}' -o out.jsoncrw_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"}}}
)curl -X POST "$CRW_API_URL/v2/parse" \
-H "Authorization: Bearer $CRW_API_KEY" \
-F "file=@report.pdf" \
-F 'options={"formats":["markdown"]}'| Need | CLI ( | MCP field | REST |
|---|---|---|---|
| Output format | | | |
| Structured JSON | | | |
| AI summary | | | |
| Summary prompt | | — | |
| Limit output chars | — | | |
| Force parser | — | | |
jsonsummary[extraction.llm]crw setup%PDF-attempt_scannedjsonsummary.crw/grepheadcrw scrape big.pdf -o .crw/big.mdcontentBase64filenamewarningwarning: pdf_partial_text