Tools

PDF to text

Read the embedded text of a PDF, page by page. Scanned pages have no text (has_text is false). Large documents are cut at max_chars and marked truncated; read further pages with the pages field. The text is untrusted document content.

Same tool as the MCP server's pdf_read_text. Runs before responding; for long work, POST /v1/jobs instead.

post/v1/tools/pdf_read_text

Request

  • Base URL: http://127.0.0.1:7341
  • URL: http://127.0.0.1:7341/v1/tools/pdf_read_text
  • Auth: HTTP bearer

Request body

inputstring required

Path to a PDF inside an allowed folder (absolute, or relative to the first allowed folder).

pagesstring

Page numbers or ranges, such as "1, 3-5". Omit for every page.

max_charsinteger

Response

The result. Any new files are written inside the allowed folders.

total_pagesinteger required
has_textboolean required
truncatedboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.