convert_document
Convert PDF, Word, PowerPoint or Excel documents to Markdown from a public URL or local file, with format detected automatically. Use it to turn source documents into clean Markdown text.
Instructions
Convert one document to Markdown. Give either url or path. The format is detected from the content. A local path file is uploaded to the Unfold API.
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 |
|---|---|---|---|
| url | No | Public http(s) URL of the document. | |
| path | No | Local .pdf, .docx, .pptx or .xlsx file to upload to the Unfold API instead (up to 10 MB). Only files inside the working directory (or UNFOLD_MCP_ROOT) are read. | |
| max_chars | No | Cut the Markdown to this many characters. |