convert_to_markdown
Convert local text PDFs or saved HTML files into clean Markdown, preserving tables as real Markdown tables so AI tools can read and reuse the content.
Instructions
Turn a local text PDF or saved HTML file into clean Markdown.
path: full path to a .pdf or .html file on this computer. tables: PDF tables. "lines" (default) finds tables with border lines, "text" also tries tables lined up by spaces, "off" gives plain text. output_path: optional. If set, the Markdown is saved there and that path is returned. If empty, the Markdown text is returned.
Tables come back as Markdown tables. Scanned (image-only) PDF pages have no text and are skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| tables | No | lines | |
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |