Use when tasks need EasyDoc REST API to convert unstructured documents into structured JSON or markdown on either China EasyLink platform or global EasyDoc p...
Use this skill to call EasyDoc async parsing APIs and return stable structured output. Always follow the same lifecycle: select platform, validate inputs, submit task, poll result, normalize output.
If the parsed output is being used for RAG, do not load the entire JSON file into context by default.
Grep, Search, or equivalent "search within file content" capability, use that tool first.type values before opening any large file.grep or rg if the host agent already exposes an equivalent search tool.If user has no API key, guide first:
cn platform key flowhttps://platform.easylink-ai.comEASYLINK_API_KEYglobal platform key flowhttps://platform.easydoc.shEASYDOC_API_KEYWhen user does not specify platform, ask whether they want cn or global first.
Choose platform before calling any endpoint:
cn platformhttps://api.easylink-ai.comPOST /v1/easydoc/parseGET /v1/easydoc/parse/{task_id}fileseasydoc-parse-flash, easydoc-parse-premiumglobal platformhttps://api.easydoc.shPOST /api/v1/parseGET /api/v1/parse/{task_id}/resultfileliteapi-key from user input or secure environment variable.cn: easydoc-parse-premium, global: lite).<= 100MB) using platform-specific extension list.mode.task_id from response.SUCCESS, ERROR, FAILED, COMPLETED, DONE) or timeout.raw.task_id, status, files.task_id in error reports when available.China platform:
curl -X POST "https://api.easylink-ai.com/v1/easydoc/parse" \
-H "api-key: $EASYLINK_API_KEY" \
-F "files=@document.pdf" \
-F "mode=easydoc-parse-premium"
Global platform:
curl -X POST "https://api.easydoc.sh/api/v1/parse" \
-H "api-key: $EASYDOC_API_KEY" \
-F "file=@demo_document.pdf" \
-F "mode=lite"
Bundled Python helper:
python3 scripts/easydoc_parse.py --platform cn --api-key "$EASYLINK_API_KEY" \
--mode easydoc-parse-premium --file ./document.pdf --save ./result-cn.json
python3 scripts/easydoc_parse.py --platform global --api-key "$EASYDOC_API_KEY" \
--mode lite --file ./document.pdf --save ./result-global.json
# key can come from environment if --api-key is omitted
export EASYLINK_API_KEY="your-cn-key"
python3 scripts/easydoc_parse.py --platform cn --file ./document.pdf --save ./result-cn.json
export EASYDOC_API_KEY="your-global-key"
python3 scripts/easydoc_parse.py --platform global --file ./document.pdf --save ./result-global.json
references/easydoc-rest-api.md for endpoint-level differences between cn and global.scripts/easydoc_parse.py for deterministic submit and polling.normalized; use --output-format raw for raw payload only.{
"task_id": "string",
"status": "SUCCESS|ERROR|PENDING|PROCESSING|FAILED|COMPLETED|DONE",
"files": [
{
"file_name": "string",
"markdown": "string or null",
"nodes": []
}
],
"raw": {}
}
ZIP package — ready to use