Install
openclaw skills install laiye-doc-processingEnables AI-powered parsing and key information extraction from high-frequency documents including invoices, orders, receipts, long texts, and common Chinese...
openclaw skills install laiye-doc-processingagentic-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.
adp schema to get the machine-readable JSON spec of all commands, parameters, types, and defaults.adp config get to verify credentials. If no valid configuration exists, prompt the user to provide an API Key.adp app-id list. For subsequent executions, prioritize adp app-id cache (cached in context). If the cache is unavailable, refresh it by calling adp app-id list again.adp extract url <URL> --app-id <ID> or adp parse url <URL> --app-id <ID>.adp extract query <task_id> or adp parse query <task_id>.| User Intent | Recommended Command | Handling Rules |
|---|---|---|
| - Read full document content<br>- Parse layout & structure<br>- Convert document to text<br>- Process / analyze full document | adp parse | - Sync processing for small files<br>- Async processing (--async parameter) for files >20MB or >200 pages |
| - Extract key fields (amount, date, name, ID, etc.)<br>- Output structured results (JSON/table) | adp extract | - Use Extract directly, no need to parse first<br>- Use matched existing app<br>- Create a custom extraction app if the document type is not in the known app list |
| Batch processing of local files | adp extract local <folder path> <br> adp parse local <folder path> | Batch processing can accept files from the local folder. |
| Batch processing of URL files | adp extract url <URL list file path> <br> adp parse url <URL list file path> | If you need to process multiple URLs in a batch, you can first save the list of URLs in a text file, and then input the corresponding URL of this text file to achieve batch processing at once. |
Note:
adp extract command has built-in document parsing capabilities. After ADP automatically parses the document, it performs structured extraction. Therefore, when users need to extract the structured content of the document, there is no need to use apd for parsing.# Command Discovery (for Agent introspection)
adp schema
# Configuration Check
adp config get
# Query Applications (First Use)
adp app-id list
# Document Extraction (Invoice/Receipt)
adp extract url <file URL> --app-id <app_id>
# Document Parsing (Long Document)
adp parse url <file URL> --app-id <app_id>
# Base64 Input
adp extract base64 <base64_string> --app-id <app_id> --file-name invoice.pdf
adp parse base64 <base64_string> --app-id <app_id> --file-name document.pdf
# Asynchronous Query
adp extract query <task_id>
adp parse query <task_id>
adp parse query <task_id1> <task_id2> --watch # batch query with auto-poll
# Batch Processing
adp extract local <folder path> --app-id <app_id> --export <folder path> --concurrency 2
adp parse local <folder path> --app-id <app_id> --export <folder path> --concurrency 2
app-id list every time.url <URL list file path> or local <folder path> in a single run, without looped invocations. Default --concurrency 2.extract instead of parse (faster).--retry 2 for batch processing to auto-recover from transient failures.--timeout for files >20MB. Default is 900s.For details, see references/examples.md
We provide independent Public Cloud access addresses for domestic and international users, which need to be configured separately by region. Accessing nearby can better ensure high-speed and stable calls across the network.
| Region | Login Address | API Base URL |
|---|---|---|
| Chinese Mainland | https://adp.laiye.com/ | https://adp.laiye.com/ |
| Overseas Region | https://adp-global.laiye.com/ | https://adp-global.laiye.com/ |
New users need to register an ADP account first, and after registration, they can get 100 free credits/month
API_Key entry.For details, see references/examples.md
For details, see references/examples.md
Notes:
After completing the authentication of the API Key, guide the user to upload local files or specify the file URL. After the user uploads the document, they can query the supported application scope of ADP and select the appropriate application for document parsing and extraction. If no suitable application is found, they can choose to create a custom extraction application, configure exclusive fields and parsing modes to meet the personalized document processing requirements.
This function is used to query the built-in applications under the user's account (such as invoices/receipts, orders, common cards and certificates in China region, etc. which are standardized documents). Based on the app-label, you can assist in filtering the suitable application IDs. If no suitable application is found, you can choose to create a custom extraction application, configure specific fields and parsing modes to meet the personalized document processing requirements.
Notes:
adp app-id list. For subsequent executions, prefer to use adp app-id cache (cache the application ID in the context). If the cache becomes invalid or there are no suitable applications in the cache, call adp app-id list again to update the cache.For detailed examples of commands and responses, see references/examples.md.
Support creating custom extraction applications, and independently add business-specific extraction fields as needed, and improve the detailed description of each field; the system will accurately identify the document content based on the configured fields and definitions, and complete customized information extraction for personalized documents and non-standard forms.
For example commands, responses, and detailed parameter descriptions, please refer to references/examples.md
Perform document parsing based on the selected application ID, which will return a formatted JSON result containing information such as document content, element position coordinates, OCR Confidence Level, etc.
For examples of commands and responses, please refer to references/examples.md
Perform document extraction based on the selected application ID, which will return a formatted JSON result containing information such as extraction fields, extraction results, and Confidence Level.
For examples of commands and responses, please refer to references/examples.md
ADP supports batch processing capabilities. Users can upload multiple file URLs or local folder paths at once, and the system will automatically identify each document type and match the most suitable application for processing, greatly improving the efficiency of batch document processing.
For detailed command examples, see references/examples.md
Note: The number of concurrent requests is limited to 1 for free users, while enterprise users can adjust it according to their needs, with a maximum support of 2.
ADP provides asynchronous processing capabilities, allowing users to choose asynchronous mode to perform document parsing and extraction. The system will return a task ID, and users can periodically query the task status and results through the query interface, which is suitable for processing complex documents or batch documents with long processing times. If the document uploaded by the user is larger than 20MB or contains more than 200 pages, it is recommended to use the asynchronous processing mode.
For examples of commands and responses, see references/examples.md
For a complete list of all available commands with full parameter specs, see references/commands.md
For the output structure of each command (including batch processing output mechanism), see references/response-schema.md
For error codes, types, and Agent auto-recovery strategies, see references/error-handling.md
When using ADP output, always present the returned data as-is. Do not modify, add, or remove any fields during extraction or parsing to ensure data integrity.
https://adp.laiye.com/, and for overseas regions, use https://adp-global.laiye.com/adp credit to check the current account's credit balance.Copyright © 2026 [Laiye Technology (Beijing) Co., Ltd.] All rights reserved.