Document to Markdown: Korean HWP/HWPX to Markdown, plus web pages, PDF and DOCX
convert_to_markdownUse when an agent must read a document as clean Markdown: web page, PDF, DOCX or Korean HWP/HWPX, tables kept. Input: url (http/https) via GET, or POST a file (multipart 'file', raw body, or JSON contentBase64+filename). Free-plan size cap → 413 before payment: HWP 48 KB, HWPX 100 KB XML. Output: JSON markdown, title, pages, sourceType, warnings. Price by detected type: HTML $0.0027, PDF/DOCX $0.0045, HWP/HWPX $0.009. Use instead: web_read for an HTML page with max_chars or injection flags; web_read_batch for several web pages; docs_extract for key facts as fixed JSON; convert_ocr for scans and images without a text layer. Example: ?url=https://example.com/ Price: $0.0027–$0.009 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "convert_to_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) URL of a web page, PDF, DOCX, HWP or HWPX (max 10 MB) | |
| type | No | Optional expected type: html, text, pdf, docx, hwp, hwpx | |
| filename | No | Original file name, e.g. report.hwp (helps detection) | |
| contentBase64 | No | Document bytes as base64 (alternative to url; max 10 MB decoded) |