convert_to_text
Convert PDFs, images, and Office files to plain text without markdown for token-limited LLMs. Tables are linearized to preserve data.
Instructions
Convert a document or image to plain text (no markdown formatting).
Best for feeding token-limited text-only LLMs. Tables are linearized. Returns just the text string.
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": {
"source": "<source>"
},
"name": "convert_to_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| page_range | No | ||
| ocr_languages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |