Convert PDF or image to Markdown
convert_to_markdownConvert PDF and image files to clean Markdown for RAG, LLM ingestion, and knowledge bases. Optionally include MinerU layout JSON (content list with blocks and bounding boxes).
Input: 1-5 public https file URLs, each ≤20 MiB. Supported: pdf, png, jpeg, webp, bmp, tiff. DOCX is not supported in this release. Private, local, and metadata hosts are rejected.
Processing is asynchronous upstream; this call polls until done or times out after about 75 seconds.
This Worker does not store uploaded files or results. Upstream MinerU task data is temporary (≤24h).
Billing: charged before the MinerU job is created (default 1 credit per tool call). No automatic refunds.
Powered by MinerU (opendatalab/MinerU). License: https://github.com/opendatalab/MinerU/blob/master/LICENSE.md
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"files": "<files>"
},
"name": "convert_to_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | 1-5 public https file URLs. | |
| include_layout_json | No | When true, also return MinerU layout JSON (content_list) for each file. |