convert_file_to_markdown
Transform local PDF, DOCX, XLSX, or image files into clean Markdown. Provide an absolute file path to process supported formats.
Instructions
Convert a local file to clean Markdown text. The path must be absolute and visible to the server process. Supports PDF, DOCX, XLSX, images, and 20+ formats.
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": {
"file_path": "<file_path>"
},
"name": "convert_file_to_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Optional markdown.new API key. Leave empty to use MARKDOWN_NEW_API_KEY from the server environment. | |
| file_path | Yes | Absolute path to a local file visible to this MCP server process. |