PDF to markdown
get_pdf_markdownUse when an agent needs the text of a PDF as markdown. Returns the text of the one PDF URL you pass, page by page as markdown, with title, page count and word count. http or https, 10 MB, 10 s; robots.txt honoured and private addresses refused. A file that is not a PDF, a PDF with no text layer (a scan), or an unreachable URL, is never charged. Costs 0.01 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
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": "get_pdf_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | the PDF to convert: an absolute http or https URL |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_pdf_markdown payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_pdf_markdown | |
| tool | Yes | the tool that produced this payload |