document_to_markdown
Convert PDF, DOCX, or TXT files from public URLs into clean Markdown or text, split into overlapping chunks ready for RAG and embeddings.
Instructions
Convert PDF, DOCX or TXT documents from public URLs into clean Markdown or text, split into overlapping chunks ready for RAG and embeddings.
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": {
"sources": "<sources>"
},
"name": "document_to_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | Yes | Public URLs of PDF, DOCX or TXT files. | |
| chunkSize | No | Chunk size in characters (default 1500). | |
| extraInput | No | Any other input field of the Actor, as documented on its Apify page. Overrides the fields above. | |
| maxResults | No | Maximum number of result items returned to the assistant (default 50). The full dataset stays in your Apify account. | |
| outputFormat | No | Output format (default markdown). | |
| includeFullText | No | Include the full document text besides the chunks (default true). |