Convert Document or Image URL to Markdown (OCR)
doc_to_markdownDownload a public PDF, DOCX, XLSX, PPTX, HTML, TXT, CSV, or image (PNG, JPEG, WEBP) URL up to 20 MB and extract structured Markdown and tables, with automatic Tesseract OCR fallback for scanned PDFs and images. Returns Markdown, page count, detected format, word count, and ocr_used flag. Cost: 2 credits.
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": {
"url": "<url>"
},
"name": "doc_to_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http:// or https:// URL pointing to a supported document or image file. |