Skip to main content
Glama

doc2x_parse_pdf_wait_text

Extract text from PDF documents by waiting for parsing completion, returning merged content with configurable output limits for processing.

Instructions

Wait for a PDF parse task until success and return merged text. Prefer passing uid (no re-submit). If only pdf_path is provided, it will (a) reuse an in-process cached uid if available, otherwise (b) submit a new task then wait.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidNoDoc2x parse task uid returned by doc2x_parse_pdf_submit.
pdf_pathNoAbsolute path to a local PDF file. If uid is not provided, this tool will reuse cached uid (if any) or submit a new task.
poll_interval_msNo
max_wait_msNo
join_withNo
max_output_charsNoMax characters of returned text (0 = unlimited). Useful to avoid LLM context overflow. Default can be set via env DOC2X_PARSE_PDF_MAX_OUTPUT_CHARS.
max_output_pagesNoMax pages to merge into returned text (0 = unlimited). Default can be set via env DOC2X_PARSE_PDF_MAX_OUTPUT_PAGES.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NoEdgeAI/doc2x-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server