Transform files into structured output by running a configurable pipeline. Submits 1-10 inputs as one async job and returns a ``job_id`` immediately. Drive the wait via ``check_job_status``; once complete, call ``get_job_results`` to retrieve the rendered output in the format you want. **Inputs.** ``file_refs`` accepts ``https://`` / ``http://`` URLs, ``u10d://file/<id>`` uploads (mint via ``request_file_upload_url`` + PUT, or pasted by the user from the ``open_file_manager`` card's "Copy refs" button), and ``u10d://output/<id>`` refs from a previous ``get_job_results``. An ``output_ref`` resolves to that job's *terminal* stage, the last stage it ran. Feeding it back in re-ingests that Element JSON without re-partitioning, so re-chunking or re-embedding is cheap and needs no re-upload, but the re-feed is only sound when the ref is *upstream* of the stage you're changing: a parse-only ref is a clean seed to re-chunk; an already-embedded ref is not (re-chunking it mangles already-chunked output). See **Staging strategy** below. Limits: 50 MB per file, 10 per call, 5 active jobs per tenant. Free-tier accounts also carry a page allowance; once it's exhausted this tool returns a ``quota_exceeded`` error whose ``message`` and ``upgrade_url`` should be relayed to the user verbatim. **Pipeline.** ``stages`` is a map of stage name → settings; the tool wires the DAG in canonical order (``partition → enrich → chunk → embed``) regardless of key order. Omit ``stages`` (or pass ``{}``) for a plain parse. Stages: - ``partition``, ``{"strategy": ...}`` (``fast`` / ``hi_res`` / ``vlm`` / ``auto``), plus optional ``languages`` and ``page_range``. Under ``vlm``, ``provider`` / ``model`` pin the vision model, e.g. ``{"strategy": "vlm", "provider": "anthropic", "model": "claude-sonnet-4-6"}`` (omit both ``provider`` and ``model`` to have the deployment resolve a default VLM server-side; or pin one of ``anthropic`` (claude-haiku-4-5-20251001, claude-opus-4-1-20250805, claude-opus-4-5-20251101, claude-opus-4-6, claude-opus-4-7, claude-opus-4-8, claude-opus-5, claude-opus-5-5, claude-sonnet-4-5-20250929, claude-sonnet-4-6, claude-sonnet-5, claude-sonnet-5-5); ``bedrock`` (us.amazon.nova-2-lite-v1:0, us.amazon.nova-lite-v1:0, us.amazon.nova-pro-v1:0, us.anthropic.claude-3-haiku-20240307-v1:0, us.anthropic.claude-3-opus-20240229-v1:0, us.anthropic.claude-3-sonnet-20240229-v1:0, us.anthropic.claude-opus-4-20250514-v1:0, us.anthropic.claude-opus-4-5-20251101-v1:0, us.anthropic.claude-opus-4-6-v1, us.anthropic.claude-opus-4-7, us.anthropic.claude-opus-4-8, us.anthropic.claude-opus-5, us.anthropic.claude-opus-5-5, us.anthropic.claude-sonnet-4-20250514-v1:0, us.anthropic.claude-sonnet-4-5-20250929-v1:0, us.anthropic.claude-sonnet-4-6, us.anthropic.claude-sonnet-5, us.anthropic.claude-sonnet-5-5); ``openai`` (gpt-4o, gpt-4o-mini, gpt-5-mini, gpt-5.2, gpt-5.4, gpt-5.4-mini, gpt-5.6, gpt-5.6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-6-luna, gpt-6-sol); ``vertexai`` (gemini-2.0-flash-001, gemini-2.5-flash, gemini-2.5-pro, gemini-3-flash-preview, gemini-3-pro-preview, gemini-3.5-flash, gemini-3.7-flash, projects/vertex-ai-non-production/locations/us-east1/endpoints/4736504777435774976, projects/vertex-ai-non-production/locations/us/endpoints/4821384876076826624, projects/vertex-ai-non-production/locations/us/endpoints/968555394861367296) (the operator must have provisioned that provider's key)); other strategies ignore them. They go at the stage's top level, not inside the advanced ``options`` passthrough. A partition node always runs (it's a near-passthrough for Element-JSON inputs); this stage only customizes it. **Pick the strategy explicitly from the input type, don't rely on ``auto``, and note the wrong choice degrades silently rather than erroring:** - **Images, PowerPoint (PPT/PPTX), and PDFs** → start with ``vlm``. If its output isn't optimal, switch to ``hi_res`` with the ``image_description`` / ``generative_ocr`` / ``table_to_html`` enrichments, which can beat ``vlm`` when hi_res layout/element detection is accurate. ``hi_res`` is also the strategy that yields the bounding-boxed elements enrichments act on. - **Every other format** (DOCX, XLSX, HTML, EML, CSV, TXT, …) → use ``fast``. ``vlm``/``hi_res`` don't apply to these and silently fall back to ``fast`` anyway, and ``fast`` (text-layer extraction) is all they need. - ``enrich``, ``{"types": [...]}``; per-element AI passes (most are VLM-based; ``table_to_html`` may use a VLM or agentic AI, and ``ner`` reads extracted text) that need ``hi_res`` to have elements to act on. Types: ``image_description``, ``table_description``, ``table_to_html``, ``ner``, ``generative_ocr``. - ``chunk``, ``{"strategy": ...}`` (required: ``chunk_by_character`` / ``chunk_by_page`` / ``chunk_by_similarity`` / ``chunk_by_title``) plus optional size settings (``max_characters``, ``overlap``, ``new_after_n_chars``, ``combine_text_under_n_chars``, ``similarity_threshold``, …). Slices elements into retrieval-sized chunks. - ``embed``, ``{"provider": ..., "model": ...}`` (defaults ``openai`` / ``text-embedding-3-small``; the model registry currently offers ``azure_openai`` (text-embedding-3-large:3072, text-embedding-3-small:1536, text-embedding-ada-002:1536); ``bedrock`` (amazon.titan-embed-text-v1:1536, amazon.titan-embed-text-v2:0:1024, cohere.embed-english-v3:1024, cohere.embed-multilingual-v3:1024); ``ibm`` (ibm/granite-embedding-278m-multilingual:768, ibm/slate-125m-english-rtrvr-v2:768, ibm/slate-30m-english-rtrvr-v2:384, intfloat/multilingual-e5-large:1024, sentence-transformers/all-minilm-l6-v2:384); ``openai`` (text-embedding-3-large:3072, text-embedding-3-small:1536, text-embedding-ada-002:1536); ``voyageai`` (voyage-3:1024, voyage-3-large:1024, voyage-3-lite:512, voyage-3.5:1024, voyage-3.5-lite:1024, voyage-code-2:1536, voyage-code-3:1024, voyage-finance-2:1024, voyage-law-2:1024) (as model:dimension, where the operator has provisioned that provider's key)). Attaches a vector to each chunk/element. Best paired with ``chunk``, embedding whole un-chunked elements retrieves poorly (you'll get a warning). Embedded output is large and vector-dominated; it's retrieved out of band, never read it into context to re-emit it to a file (see ``get_job_results``). Examples, parse: ``{}``. RAG ingest: ``{"chunk": {"strategy": "chunk_by_title"}, "embed": {}}``. Re-chunk a prior output: ``file_refs=["u10d://output/…"]`` with ``{"chunk": {"strategy": "chunk_by_character", "max_characters": 1000}}``. **Staging strategy, decide before you submit.** A job returns exactly one ``output_ref`` per file: the Element JSON of its *terminal* stage. Intermediate stages are not separately addressable, so a single ``partition+chunk+embed`` job hands back one (embedded) handle, not one per stage. If you're confident in every stage's settings, run the whole pipeline in one job. But if there's *any* doubt that a downstream stage is optimal, a chunk size/strategy or embed model you may want to A/B or re-tune, split the pipeline into separate jobs chained by ``output_ref`` (parse → its ref → chunk → its ref → embed). Each job then yields its own reusable seed, so re-tuning a later stage re-runs only that stage instead of forcing a re-parse, or, worse, re-chunking already-embedded output. **Embedding model must match at query time.** The provider + model in an ``embed`` stage define the vector space; to search the vectors you must embed each query with the *same* provider/model, call the embedding provider's API directly at query time. A different model or dimension is not comparable. The response ``warnings`` echo the exact provider/model/dimension; record them and tell the user. **Cost:** embedding calls a paid provider and scales with token count. Output format is not chosen here, the engine always materializes Element JSON and ``get_job_results`` renders ``md`` / ``json`` / ``html`` / ``txt`` per call.
Parameters
1-10 input URIs (source files or prior ``output_ref``s).
Optional pipeline config (see above). Omit for a plain parse. An unknown stage name or setting surfaces as an ``invalid_request`` error listing what's available.