/alibabacloud-docmind-parse
Alibaba Cloud DocMind intelligent document parsing tool. Supports PDF, Word, PPT, Excel, images and more, outputting structured Markdown/JSON/HTML. Offers two invocation modes — V2 API direct access and Alibaba Cloud POP — with automatic routing based on credential availability.
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-docmind-parse --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/alibabacloud-docmind-parse
Context preview
The summary Claude sees to decide when to auto-load this skill.
Alibaba Cloud DocMind intelligent document parsing tool. Supports PDF, Word, PPT, Excel, images and more, outputting structured Markdown/JSON/HTML. Offers two invocation modes — V2 API direct access and Alibaba Cloud POP — with automatic routing based on credential availability.
SKILL.md
alibabacloud-docmind-parse.SKILL.mdname: alibabacloud-docmind-parse
description: >
Alibaba Cloud DocMind intelligent document parsing tool. Supports PDF, Word, PPT, Excel,
images and more, outputting structured Markdown/JSON/HTML. Offers two invocation modes —
V2 API direct access and Alibaba Cloud POP — with automatic routing based on credential
availability. Use when the user needs to parse documents, extract content (text/tables/images),
convert documents to Markdown, or mentions "docmind", "document parsing", "parse file", etc.
DocMind Document Parsing
Two Invocation Modes
1. **Free Mode (V2 API Direct)**: Configure the endpoint via the `DOCMIND_V2_ENDPOINT` environment variable; limited daily free quota. 2. **Alibaba Cloud POP Mode**: Credentials are obtained automatically through the default credential chain; 3,000 pages per month free, pay-as-you-go beyond that.
Routing Strategy
- When the Alibaba Cloud default credential chain is available, prefer **POP Mode**.
- When credentials are unavailable but `DOCMIND_V2_ENDPOINT` is configured, use **V2 Free Mode**.
- When the free quota is exhausted, prompt the user to activate the Alibaba Cloud DocMind service.
Environment Variables
| Variable | Description | Required | |----------|-------------|----------| | `DOCMIND_V2_ENDPOINT` | V2 API service endpoint (domain or IP). Defaults to `docmind.aliyuncs.com` | Optional |
POP Mode automatically obtains credentials through the Alibaba Cloud default credential chain (environment variables, config files, ECS RAM roles, etc.) — no manual management needed.
---
Usage
python scripts/docmind_parse.py <file_path_or_url> [options]
Parameters
| Parameter | Description | Default | |-----------|-------------|---------| | `<file_path_or_url>` | Local file path or file URL | Required | | `--mode` | Invocation mode: `auto`, `v2`, `pop` | `auto` | | `--enhancement` | Enhancement mode: `VLM`, `LLM`, `DIGITAL`, `OCR`, `AUTO` | None | | `--output` | Output format: `markdown`, `json`, `html` | `markdown` | | `--pages` | Page range to parse, e.g. `1-5` | All | | `--output-file` | Output file path | Stdout | | `--head-foot` | Parse headers and footers | Off | | `--user-prompt` | Custom user prompt | None | | `--option` | Document parsing options | None | | `--markdown-table` | Table output format: `html`, `markdown` | None | | `--markdown-image` | Image output format: `html`, `markdown` | None | | `--file-ext` | File extension (alternative to fileName) | Auto-detected |
Examples
# Parse a URL (auto-select mode)
python scripts/docmind_parse.py https://example.com/doc.pdf
# Parse with VLM enhancement
python scripts/docmind_parse.py https://example.com/doc.pdf --enhancement VLM
# Parse the first 5 pages, output to a Markdown file
python scripts/docmind_parse.py ./report.pdf --pages 1-5 --output-file result.md
# Parse a local file via V2 mode (auto base64 encoding)
python scripts/docmind_parse.py ./contract.pdf --mode v2
# Parse with custom table/image output formats
python scripts/docmind_parse.py https://example.com/doc.pdf --markdown-table markdown --markdown-image html
# Parse headers and footers with a custom prompt
python scripts/docmind_parse.py https://example.com/doc.pdf --head-foot --user-prompt "Extract all footnotes"
# Force Alibaba Cloud POP mode
python scripts/docmind_parse.py ./contract.pdf --mode pop
---
V2 API Direct Access (Free Mode)
Supports both URL and local file (base64) upload. The request body is organized into four blocks: Document, Processing, Output, and Notification.
Submit Endpoint
`POST {DOCMIND_V2_ENDPOINT}/skill/submit`
Full request schema:
{
"document": {
"fileUrl": "https://example.com/doc.pdf",
"fileBase64": "<base64-encoded file content, alternative to fileUrl>",
"fileName": "doc.pdf",
"fileNameExtension": "pdf"
},
"processing": {
"enhancementMode": "VLM",
"pageIndex": "1-5",
"headFoot": false,
"userPrompt": "Custom prompt",
"option": "parsing-option"
},
"output": {
"outputFormat": ["markdown"],
"markdownTable": ["html"],
"markdownImage": ["html"],
"docExtraParameters": {"key": "value"},
"extraParameters": "audio-video-extra-params",
"ossConfig": {
"bucket": "my-bucket",
"endpoint": "oss-cn-hangzhou.aliyuncs.com",
"accessKeyId": "...",
"accessKeySecret": "...",
"securityToken": "..."
}
},
"notification": {
"enableEventCallback": false
}
}> `document.fileUrl` and `document.fileBase64` are mutually exclusive. When parsing a local file via V2 mode, the script automatically reads and base64-encodes the file. `fileNameExtension` is auto-detected from the file extension when not explicitly provided.
Response:
{
"success": true,
"data": { "bizId": "docmind-20260519-xxxx" }
}Query Endpoint
`POST {DOCMIND_V2_ENDPOINT}/skill/query`
{
"bizId": "docmind-20260519-xxxx",
"layoutStepSize": 100,
"layoutNum": 0
}Response (on success):
{
"success": true,
"data": {
"status": "success",
"processing": 100.0,
"layouts": [ ... ]
}
}Rate limiting: max 5 tasks per second per IP, global limit 20.
---
Alibaba Cloud POP Invocation
Three-step async workflow using the default credential chain to initialize the client:
1. **Submit task** - `SubmitDocParserJob` / `SubmitDocParserJobAdvance` 2. **Query status** - `QueryDocParserStatus` (poll until success/fail) 3. **Get result** - `GetDocParserResult` (incremental retrieval via LayoutNum + LayoutStepSize pagination)
POP endpoint: `docmind-api.cn-hangzhou.aliyuncs.com`, API version: `2022-07-11`
from alibabacloud_credentials.client import Client as CredClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_docmind_api20220711.client import Client as DocMindClient
cred = CredClient()
config = open_api_models.Config(
credential=cred,
endpRead more
name: alibabacloud-docmind-parse description: > Alibaba Cloud DocMind intelligent document parsing tool. Supports PDF, Word, PPT, Excel, images and more, outputting structured Markdown/JSON/HTML. Offers two invocation modes — V2 API direct access and Alibaba Cloud POP — with automatic routing based on credential availability. Use when the user needs to parse documents, extract content (text/tables/images), convert documents to Markdown, or mentions "docmind", "document parsing", "parse file", etc.
DocMind Document Parsing
Two Invocation Modes
1. **Free Mode (V2 API Direct)**: Configure the endpoint via the `DOCMIND_V2_ENDPOINT` environment variable; limited daily free quota. 2. **Alibaba Cloud POP Mode**: Credentials are obtained automatically through the default credential chain; 3,000 pages per month free, pay-as-you-go beyond that.
Routing Strategy
- When the Alibaba Cloud default credential chain is available, prefer **POP Mode**.
- When credentials are unavailable but `DOCMIND_V2_ENDPOINT` is configured, use **V2 Free Mode**.
- When the free quota is exhausted, prompt the user to activate the Alibaba Cloud DocMind service.
Environment Variables
| Variable | Description | Required | |----------|-------------|----------| | `DOCMIND_V2_ENDPOINT` | V2 API service endpoint (domain or IP). Defaults to `docmind.aliyuncs.com` | Optional |
POP Mode automatically obtains credentials through the Alibaba Cloud default credential chain (environment variables, config files, ECS RAM roles, etc.) — no manual management needed.
---
Usage
python scripts/docmind_parse.py <file_path_or_url> [options]
Parameters
| Parameter | Description | Default | |-----------|-------------|---------| | `<file_path_or_url>` | Local file path or file URL | Required | | `--mode` | Invocation mode: `auto`, `v2`, `pop` | `auto` | | `--enhancement` | Enhancement mode: `VLM`, `LLM`, `DIGITAL`, `OCR`, `AUTO` | None | | `--output` | Output format: `markdown`, `json`, `html` | `markdown` | | `--pages` | Page range to parse, e.g. `1-5` | All | | `--output-file` | Output file path | Stdout | | `--head-foot` | Parse headers and footers | Off | | `--user-prompt` | Custom user prompt | None | | `--option` | Document parsing options | None | | `--markdown-table` | Table output format: `html`, `markdown` | None | | `--markdown-image` | Image output format: `html`, `markdown` | None | | `--file-ext` | File extension (alternative to fileName) | Auto-detected |
Examples
# Parse a URL (auto-select mode) python scripts/docmind_parse.py https://example.com/doc.pdf # Parse with VLM enhancement python scripts/docmind_parse.py https://example.com/doc.pdf --enhancement VLM # Parse the first 5 pages, output to a Markdown file python scripts/docmind_parse.py ./report.pdf --pages 1-5 --output-file result.md # Parse a local file via V2 mode (auto base64 encoding) python scripts/docmind_parse.py ./contract.pdf --mode v2 # Parse with custom table/image output formats python scripts/docmind_parse.py https://example.com/doc.pdf --markdown-table markdown --markdown-image html # Parse headers and footers with a custom prompt python scripts/docmind_parse.py https://example.com/doc.pdf --head-foot --user-prompt "Extract all footnotes" # Force Alibaba Cloud POP mode python scripts/docmind_parse.py ./contract.pdf --mode pop
---
V2 API Direct Access (Free Mode)
Supports both URL and local file (base64) upload. The request body is organized into four blocks: Document, Processing, Output, and Notification.
Submit Endpoint
`POST {DOCMIND_V2_ENDPOINT}/skill/submit`
Full request schema:
{
"document": {
"fileUrl": "https://example.com/doc.pdf",
"fileBase64": "<base64-encoded file content, alternative to fileUrl>",
"fileName": "doc.pdf",
"fileNameExtension": "pdf"
},
"processing": {
"enhancementMode": "VLM",
"pageIndex": "1-5",
"headFoot": false,
"userPrompt": "Custom prompt",
"option": "parsing-option"
},
"output": {
"outputFormat": ["markdown"],
"markdownTable": ["html"],
"markdownImage": ["html"],
"docExtraParameters": {"key": "value"},
"extraParameters": "audio-video-extra-params",
"ossConfig": {
"bucket": "my-bucket",
"endpoint": "oss-cn-hangzhou.aliyuncs.com",
"accessKeyId": "...",
"accessKeySecret": "...",
"securityToken": "..."
}
},
"notification": {
"enableEventCallback": false
}
}> `document.fileUrl` and `document.fileBase64` are mutually exclusive. When parsing a local file via V2 mode, the script automatically reads and base64-encodes the file. `fileNameExtension` is auto-detected from the file extension when not explicitly provided.
Response:
{
"success": true,
"data": { "bizId": "docmind-20260519-xxxx" }
}Query Endpoint
`POST {DOCMIND_V2_ENDPOINT}/skill/query`
{
"bizId": "docmind-20260519-xxxx",
"layoutStepSize": 100,
"layoutNum": 0
}Response (on success):
{
"success": true,
"data": {
"status": "success",
"processing": 100.0,
"layouts": [ ... ]
}
}Rate limiting: max 5 tasks per second per IP, global limit 20.
---
Alibaba Cloud POP Invocation
Three-step async workflow using the default credential chain to initialize the client:
1. **Submit task** - `SubmitDocParserJob` / `SubmitDocParserJobAdvance` 2. **Query status** - `QueryDocParserStatus` (poll until success/fail) 3. **Get result** - `GetDocParserResult` (incremental retrieval via LayoutNum + LayoutStepSize pagination)
POP endpoint: `docmind-api.cn-hangzhou.aliyuncs.com`, API version: `2022-07-11`
from alibabacloud_credentials.client import Client as CredClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_docmind_api20220711.client import Client as DocMindClient
cred = CredClient()
config = open_api_models.Config(
credential=cred,
endpOfficial Alibaba Cloud Agent Skills collection, providing AI agents with rich Alibaba Cloud product capabilities and general-purpose tooling.
Other skills on alibabacloud-aiops-skills.
- /alibabacloud-agentbay-aio-skills
Execute code in a secure cloud sandbox via AgentBay SDK. Use this skill whenever users request to run, execute, or evaluate code (Python, JavaScript, R, Java), including plotting charts, running scripts, or viewing code output. Covers requests like "run this code", "execute
Open skill - /alibabacloud-agentloop-dataset
Operate Alibaba Cloud AgentLoop Dataset resources with aliyun CLI and the AgentLoop API version 2026-05-20. Use when requests concern AgentLoop datasets, data rows, Dataset schemas, embedding fields, semantic search, ExecuteQuery, AgentSpace data, 数据集, 数据写入, 数据查询, 语义检索, or ask
Open skill - /alibabacloud-agentloop-evaluation
Orchestrate AgentLoop evaluation workflows through the Aliyun CLI plugin with safe previews, saved evaluator and evaluator-skill management, one-shot sample tests, trace or dataset batch runs, polling, and result inspection. Analyze evaluation quality and low-score cases from
Open skill - /alibabacloud-agentloop-experience
Proactively use AgentLoop Recall to retrieve prior Alibaba Cloud AgentLoop experience through the bundled SearchContext CLI whenever the user asks or implies that prior work may help. Trigger for requests to check, search, recall, retrieve, look up, review, consult, reference,
Open skill - /alibabacloud-agentloop-management
AgentLoop APM接入 / AI可观测接入 / 应用监控接入 / 自研探针 / 探针安装. Use for Python aliyun-bootstrap (aliyun-instrument), Java AliyunJavaAgent, Golang instgo, Node.js cms_node_sdk, PHP/.NET OpenTelemetry, ack-onepilot, LicenseKey, AgentLoop workspace agentloop-*. Also for LangChain, Dify,
Open skill - /alibabacloud-avatar-video
Use Alibaba Cloud DashScope API and LingMou to generate AI video and speech. Seven capabilities — (1) LivePortrait talking-head (image + audio → video, two-step), (2) EMO talking-head, (3) AA/AnimateAnyone full-body animation (three-step), (4) T2I text-to-image (Wan 2.x, default
Open skill

