代理技能和文档解析CLI由TextIn xParse API驱动。
概览
代理技能和文档解析CLI由TextIn xParse API驱动。 将PDF、图片和Office文档直接在你的AI编码代理中转换为干净的Markdown或结构化JSON。 用一个命令将它安装到你的代理中: 通过 xparse-cli 解析完整文档或浏览指定章节、页面、事实和表格。 PDF ·图片(JPG/PNG/BMP/TIFF/WEBP)·Word ·PowerPoint ·Excel ·HTML ·OFD ·RTF - 用户提供本地文件或文档URL,用于读取、转换、搜索或提取内容- 任务要求在后续处理前将文档转换为代理友好文本- 准备内容以进行摘要、分析或下游工作流程 详见 SKILL.md,了解完整的路由规则、错误处理和参考资料。 xparse-cli 是底层的二进制。它也可以单独使用。
概述(AI 翻译)
代理技能和文档解析CLI由TextIn xParse API驱动。
将PDF、图片和Office文档直接在你的AI编码代理中转换为干净的Markdown或结构化JSON。
技能
用一个命令将它安装到你的代理中:
xparse-parse
通过xparse-cli解析完整文档或导航目标章节、页面、事实和表格。
支持格式: PDF ·图片(JPG/PNG/BMP/TIFF/WEBP)·Word ·PowerPoint ·Excel ·HTML ·OFD ·RTF
使用时间:
- 用户提供本地文件或文档URL,用于读取、转换、搜索或提取内容
- 任务需要将文档转换为代理友好文本,然后再进行进一步处理
- 为总结、分析或后续工作流程准备内容
快速入门:
详见 SKILL.md,了解完整的路由规则、错误处理和引用。
CLI
xparse-cli 是底层的二进制。它也可以单独使用。
安装:
对于中国用户,请使用npmmirror注册表:
关键命令:
| 指挥 | 描述 |
|---|---|
xparse-cli parse |
解析文档为Markdown或JSON |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
xparse-skills
Agent skills and CLI for document parsing powered by TextIn xParse API.
Turn PDFs, images, and Office documents into clean Markdown or structured JSON — directly inside your AI coding agent.
Skills
Install into your agent with one command:
npx skills add intsig-textin/xparse-skills
xparse-parse
Parse complete documents or navigate targeted sections, pages, facts, and tables via xparse-cli.
Supported formats: PDF · Images (JPG/PNG/BMP/TIFF/WebP) · Word · PowerPoint · Excel · HTML · OFD · RTF
Use when:
- User provides a local file or document URL to read, convert, search, or extract content from
- Task requires turning a document into agent-friendly text before further processing
- Preparing content for summarization, analysis, or downstream workflows
- Cropping, enhancing, dewarping, or checking manipulation/AIGC risks through domestic image services
Quick start:
xparse-cli parse report.pdf --api auto # Markdown → stdout
xparse-cli parse report.pdf --api auto --view json # Structured JSON output
xparse-cli parse report.pdf --api auto --output ./result/ # Save to directory
xparse-cli crop-enhance scan.jpg --enhance-mode 5 --view json # Crop, dewarp, remove shadows → local files
xparse-cli detect-manipulation scan.jpg --view json # Detect risks → local JSON and optional heatmap
See SKILL.md for full routing rules, error handling, and references.
CLI
xparse-cli is the underlying binary. It can also be used standalone.
Install:
npm i -g xparse-cli
For users in China, use the npmmirror registry:
npm i -g xparse-cli --registry=https://registry.npmmirror.com
Key commands:
| Command | Description |
|---|---|
xparse-cli parse |
Parse a document to Markdown or JSON |
xparse-cli quota --output json |
Show current daily free and authenticated free-package quota |
xparse-cli get_doc_info |
Create the stable local document ID for navigation |
xparse-cli get_outline |
Navigate the cached document outline |
xparse-cli search_text |
Search cached document content |
xparse-cli auth |
Configure API credentials (interactive) |
xparse-cli download --from result.json |
Download images from parse results |
xparse-cli version |
Show version info |
Automatic, free, and paid API selection:
| Mode | Behavior |
|---|---|
--api auto |
Default; uses current daily free quota, then an AppKey-authenticated free_package.free_remain_count when the service reports it |
--api free |
Force the free endpoint only |
--api paid |
Explicit paid route; requires user approval and valid OAuth/AppKey credentials |
Run xparse-cli quota --output json for current authentication, allowance, page,
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add intsig-textin/xparse-skills