PDF to text
pdf_to_textExtract text from PDFs and save it as TXT or Markdown with headings and lists kept for reading or quoting; scanned PDFs without a text layer return an error.
Instructions
Save the text of a PDF as a .txt, or as .md with headings and lists kept. Use this to read or quote a PDF. A scanned PDF has no text layer and returns an error (OCR is at https://fizzdoc.com/ocr-pdf/). Returns the saved path; the input is not changed.
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": "<file>"
},
"name": "pdf_to_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file (absolute, or relative to the working directory). | |
| format | No | "txt" (default) or "md" for Markdown. | |
| output | No | Where to save the result. Defaults to a new file next to the input. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | Anything the output does not carry over from the input. | |
| summary | Yes | One line describing the result. | |
| written | Yes | Paths of the files written, in order. |