# Send upstage-document-parse to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "upstage-document-parse",
    "name": "upstage-document-parse",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/upstage-deployment/upstage-document-parse",
    "canonicalUrl": "https://clawhub.ai/upstage-deployment/upstage-document-parse",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/upstage-document-parse",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=upstage-document-parse",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "upstage-document-parse",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T20:26:24.648Z",
      "expiresAt": "2026-05-19T20:26:24.648Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=upstage-document-parse",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=upstage-document-parse",
        "contentDisposition": "attachment; filename=\"upstage-document-parse-1.0.5.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "upstage-document-parse"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/upstage-document-parse"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/upstage-document-parse",
    "downloadUrl": "https://openagent3.xyz/downloads/upstage-document-parse",
    "agentUrl": "https://openagent3.xyz/skills/upstage-document-parse/agent",
    "manifestUrl": "https://openagent3.xyz/skills/upstage-document-parse/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/upstage-document-parse/agent.md"
  }
}
```
## Documentation

### Upstage Document Parse

Extract structured content from documents using Upstage's Document Parse API.

### Supported Formats

PDF (up to 1000 pages with async), PNG, JPG, JPEG, TIFF, BMP, GIF, WEBP, DOCX, PPTX, XLSX, HWP

### Installation

clawhub install upstage-document-parse

### API Key Setup

Get your API key from Upstage Console
Configure the API key:

openclaw config set skills.entries.upstage-document-parse.apiKey "your-api-key"

Or add to ~/.openclaw/openclaw.json:

{
  "skills": {
    "entries": {
      "upstage-document-parse": {
        "apiKey": "your-api-key"
      }
    }
  }
}

### Usage Examples

Just ask the agent to parse your document:

"Parse this PDF: ~/Documents/report.pdf"
"Parse: ~/Documents/report.jpg"

### Sync API (Small Documents)

For small documents (recommended < 20 pages).

### Parameters

ParameterTypeDefaultDescriptionmodelstringrequiredUse document-parse (latest) or document-parse-nightlydocumentfilerequiredDocument file to parsemodestringstandardstandard (text-focused), enhanced (complex tables/images), autoocrstringautoauto (images only) or force (always OCR)output_formatsstring['html']text, html, markdown (array format)coordinatesbooleantrueInclude bounding box coordinatesbase64_encodingstring[]Elements to base64: ["table"], ["figure"], etc.chart_recognitionbooleantrueConvert charts to tables (Beta)merge_multipage_tablesbooleanfalseMerge tables across pages (Beta, max 20 pages if true)

### Basic Parsing

curl -X POST "https://api.upstage.ai/v1/document-digitization" \\
  -H "Authorization: Bearer $UPSTAGE_API_KEY" \\
  -F "document=@/path/to/file.pdf" \\
  -F "model=document-parse"

### Extract Markdown

curl -X POST "https://api.upstage.ai/v1/document-digitization" \\
  -H "Authorization: Bearer $UPSTAGE_API_KEY" \\
  -F "document=@report.pdf" \\
  -F "model=document-parse" \\
  -F "output_formats=['markdown']"

### Enhanced Mode for Complex Documents

curl -X POST "https://api.upstage.ai/v1/document-digitization" \\
  -H "Authorization: Bearer $UPSTAGE_API_KEY" \\
  -F "document=@complex.pdf" \\
  -F "model=document-parse" \\
  -F "mode=enhanced" \\
  -F "output_formats=['html', 'markdown']"

### Force OCR for Scanned Documents

curl -X POST "https://api.upstage.ai/v1/document-digitization" \\
  -H "Authorization: Bearer $UPSTAGE_API_KEY" \\
  -F "document=@scan.pdf" \\
  -F "model=document-parse" \\
  -F "ocr=force"

### Extract Table Images as Base64

curl -X POST "https://api.upstage.ai/v1/document-digitization" \\
  -H "Authorization: Bearer $UPSTAGE_API_KEY" \\
  -F "document=@invoice.pdf" \\
  -F "model=document-parse" \\
  -F "base64_encoding=['table']"

### Response Structure

{
  "api": "2.0",
  "model": "document-parse-251217",
  "content": {
    "html": "<h1>...</h1>",
    "markdown": "# ...",
    "text": "..."
  },
  "elements": [
    {
      "id": 0,
      "category": "heading1",
      "content": { "html": "...", "markdown": "...", "text": "..." },
      "page": 1,
      "coordinates": [{"x": 0.06, "y": 0.05}, ...]
    }
  ],
  "usage": { "pages": 1 }
}

### Element Categories

paragraph, heading1, heading2, heading3, list, table, figure, chart, equation, caption, header, footer, index, footnote

### Async API (Large Documents)

For documents up to 1000 pages. Documents are processed in batches of 10 pages.

### Submit Request

curl -X POST "https://api.upstage.ai/v1/document-digitization/async" \\
  -H "Authorization: Bearer $UPSTAGE_API_KEY" \\
  -F "document=@large.pdf" \\
  -F "model=document-parse" \\
  -F "output_formats=['markdown']"

Response:

{"request_id": "uuid-here"}

### Check Status & Get Results

curl "https://api.upstage.ai/v1/document-digitization/requests/{request_id}" \\
  -H "Authorization: Bearer $UPSTAGE_API_KEY"

Response includes download_url for each batch (available for 30 days).

### List All Requests

curl "https://api.upstage.ai/v1/document-digitization/requests" \\
  -H "Authorization: Bearer $UPSTAGE_API_KEY"

### Status Values

submitted: Request received
started: Processing in progress
completed: Ready for download
failed: Error occurred (check failure_message)

### Notes

Results stored for 30 days
Download URLs expire after 15 minutes (re-fetch status to get new URLs)
Documents split into batches of up to 10 pages

### Python Usage

import requests

api_key = "up_xxx"

# Sync
with open("doc.pdf", "rb") as f:
    response = requests.post(
        "https://api.upstage.ai/v1/document-digitization",
        headers={"Authorization": f"Bearer {api_key}"},
        files={"document": f},
        data={"model": "document-parse", "output_formats": "['markdown']"}
    )
print(response.json()["content"]["markdown"])

# Async for large docs
with open("large.pdf", "rb") as f:
    r = requests.post(
        "https://api.upstage.ai/v1/document-digitization/async",
        headers={"Authorization": f"Bearer {api_key}"},
        files={"document": f},
        data={"model": "document-parse"}
    )
request_id = r.json()["request_id"]

# Poll for results
import time
while True:
    status = requests.get(
        f"https://api.upstage.ai/v1/document-digitization/requests/{request_id}",
        headers={"Authorization": f"Bearer {api_key}"}
    ).json()
    if status["status"] == "completed":
        break
    time.sleep(5)

### LangChain Integration

from langchain_upstage import UpstageDocumentParseLoader

loader = UpstageDocumentParseLoader(
    file_path="document.pdf",
    output_format="markdown",
    ocr="auto"
)
docs = loader.load()

### Environment Variable (Alternative)

You can also set the API key as an environment variable:

export UPSTAGE_API_KEY="your-api-key"

### Tips

Use mode=enhanced for complex tables, charts, images
Use mode=auto to let API decide per page
Use async API for documents > 20 pages
Use ocr=force for scanned PDFs or images
merge_multipage_tables=true combines split tables (max 20 pages with enhanced mode)
Results from async API available for 30 days
Server-side timeout: 5 minutes per request (sync API)
Standard documents process in ~3 seconds
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: upstage-deployment
- Version: 1.0.4
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-12T20:26:24.648Z
- Expires at: 2026-05-19T20:26:24.648Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/upstage-document-parse)
- [Send to Agent page](https://openagent3.xyz/skills/upstage-document-parse/agent)
- [JSON manifest](https://openagent3.xyz/skills/upstage-document-parse/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/upstage-document-parse/agent.md)
- [Download page](https://openagent3.xyz/downloads/upstage-document-parse)