agentic-doc-parse-and-extract
Installation
SKILL.md
agentic-doc-parse-and-extract Skill
agentic-doc-parse-and-extract is an official command-line tool released by Laiye Technology's ADP (Agentic Document Processing) product, enabling both humans and AI agents to invoke ADP capabilities in the terminal for document parsing and extraction.
Quick Start Guide for AI Agents
Core Workflow
- Install dependencies: On first execution, install the ADP CLI tool and dependencies by following the instructions in references/examples.md.
- Discover commands: Run
adp schemato get the machine-readable JSON spec of all commands, parameters, types, and defaults. - Authentication: On first execution, run
adp config getto verify credentials. If no valid configuration exists, prompt the user to provide an API Key. - Check Application: On first execution, retrieve the application list via
adp app-id list. For subsequent executions, prioritizeadp app-id cache(cached in context). If the cache is unavailable, refresh it by callingadp app-id listagain. - Execute: Run
adp extract url <URL> --app-id <ID>oradp parse url <URL> --app-id <ID>. - Query: Check results asynchronously with
adp extract query <task_id>oradp parse query <task_id>. - Error handling: When a command fails, parse the stderr JSON to determine error type and recovery action. See references/error-handling.md.