convert_document
Convert a user-supplied PDF or DOCX into structured JSON, Markdown, and tables. v1 reads a digital text layer only; scanned PDFs and images are rejected until OCR is added. Price is 0.02 USDC per successful call on Base.
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_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | Result shape. Default is both JSON fields and Markdown. | |
| filename | No | Original filename, used to help detect type. | |
| media_type | No | Optional MIME type, for example application/pdf. | |
| source_url | No | Public http(s) URL of a PDF or DOCX. Do not send both this and content_base64. | |
| content_base64 | No | Base64-encoded PDF or DOCX bytes. Prefer this for private documents. |