Resolve PDF URL
resolve_pdf_urlResolve an open-access PDF URL into a stable document_id for subsequent okraPDF parsing, rendering, and citation tasks. Use for public records or documents you have rights to process.
Instructions
Resolve a lawfully-reachable PDF URL to a stable okraPDF document_id using the D1 URL registry when later okraPDF tool calls need that document_id: execute_code SQL/search/docs.read, render_ui, view_document/review_extraction, verify_source with parsed-node evidence, or workflow runs. Intended for open/public-record sources (SEC EDGAR, gov, public-domain, permissively-licensed arXiv) and for documents the user supplies or has the rights to process. Do NOT use it to fetch behind a paywall, login, or anti-bot wall, and do NOT treat the resulting derivative as a public mirror of a copyrighted source — see internal/content-rights-policy.md (mirror levels). If you only need to read or understand the PDF content for reasoning, use normal web_fetch/browser reading first; for arXiv papers, prefer the arxiv.org/html/... page when available because it is cleaner and cheaper than OCR. Do not use this for "verify", "cite", "prove", "source", or "where in the PDF" requests; call verify_source directly with pdf_url + page/pages instead. Opens the live document viewer immediately while ingest/parse/page previews finish. Do not set wait_for/wait_ms unless the very next tool call depends on query/page/visual readiness.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Lawfully-reachable HTTPS URL for a PDF (open/public-record source or a doc you have rights to; not paywalled/license-gated — those are refused). arXiv /abs and /html URLs normalize to the direct PDF URL. | |
| pages | No | Optional page range/list used with wait_for="page" and passed to the live viewer, e.g. "23" or "1-3". | |
| wait_ms | No | Optional readiness wait budget. Defaults to 0 so the resolver returns quickly after starting ingest. Only set this when the very next tool call depends on parse/page/visual readiness. | |
| wait_for | No | Optional readiness target for wait_ms. document=phase ready, query=nodes ready, page=requested pages have images, visual=initial viewer preview images ready. | |
| processor | No | OCR processor/vendor id for the parse. Defaults to "gemini-vision" (layout-aware Gemini Flash VLM) so view_document gets bbox-bearing citation overlays. Pass "textlayer" for a fast text-only parse without overlays. | |
| open_viewer | No | Whether to open the live MCP document viewer. Defaults to true; the tool is UI-bound so hosts can show progress immediately. |