firecrawl-parse
GitHub将本地文档(PDF/Word等)转换为Markdown、生成AI摘要或回答内容问题,输出至指定目录。适用于文件路径输入场景。
Trigger Scenarios
Install
npx skills add firecrawl/cli --skill firecrawl-parse -g -y
SKILL.md
Frontmatter
{
"name": "firecrawl-parse",
"description": "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.\n",
"allowed-tools": [
"Bash(firecrawl *)",
"Bash(npx firecrawl-cli *)"
]
}
firecrawl parse
Turn a local document into clean markdown on disk. Supports PDF, DOCX, DOC, ODT, RTF, XLSX, XLS, HTML/HTM.
Quick start
Always save to .firecrawl/ with -o — parsed docs can be hundreds of KB and blow up context if streamed to stdout. Add .firecrawl/ to .gitignore.
mkdir -p .firecrawl
# File → markdown
firecrawl parse ./paper.pdf -o .firecrawl/paper.md
# AI summary
firecrawl parse ./paper.pdf -S -o .firecrawl/paper-summary.md
# Ask a question about the doc
firecrawl parse ./paper.pdf -Q "What are the main conclusions?" \
-o .firecrawl/paper-qa.md
Then read the output incrementally with head, grep, or rg.
Run firecrawl parse --help for the full option list.
Done when: the markdown, summary, or answer is written under .firecrawl/ and you have inspected it with bounded reads.
Tips
- Quote paths with spaces:
firecrawl parse "./My Doc.pdf" -o .firecrawl/mydoc.md. - Max upload size: 50 MB per file.
- Credits: ~1 per PDF page; HTML is 1 flat.
- Check
.firecrawl/before re-parsing the same file. - To check your credit balance (recommended for batch processing and similar workflows), use
firecrawl credit-usage(requires authentication).
See also
- firecrawl-scrape — same idea for URLs
- firecrawl-build-scrape — building document extraction into an app instead of running it here
Version History
-
86aaf06
Current 2026-08-27 16:51
重构技能描述为触发优先形式以节省Token;移除缓存的CLI选项表并指向帮助命令;删除冗余的使用说明部分;重写否定指令为肯定指令。
-
253abde
2026-08-19 19:06
更新支持的文件格式列表,扩展format选项支持的输出格式类型,并修正相关文档说明。
- 6c50c5d 2026-07-24 11:49


