export_markdown
Saves PDF text as a UTF-8 Markdown file, choosing output path, bypassing extraction character limits, and handling password-protected PDFs.
Instructions
Save a PDF's text as a Markdown file (UTF-8, ending in .md or .markdown; default ".md" next to the PDF), read as pdf_to_markdown reads it, without its max_chars limit. Limits, pages_skipped and pages_without_text are as for pdf_to_markdown. Needs the owner password if the PDF forbids copying.
Any password argument can be "ask": the user then types it on a local page, so it never passes through the chat.
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": {
"input_path": "<input_path>"
},
"name": "export_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | ||
| password | No | ||
| overwrite | No | ||
| input_path | Yes | ||
| output_path | No | ||
| page_markers | No | ||
| include_tables | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | ||
| tables | Yes | ||
| complete | Yes | ||
| headings | Yes | ||
| truncated | Yes | ||
| characters | Yes | ||
| pages_read | Yes | ||
| pages_skipped | Yes | ||
| pages_without_text | Yes |