ingest_pdf
Extract a local PDF into page images and per-page text for attachment to a Rabbithole hole, enabling interactive exploration on an infinite canvas.
Instructions
Extract a local PDF into Rabbithole image assets and per-page text. Produces 2x page render PNGs named page-001.png, page-002.png, etc. plus opportunistic embedded rasters named embed-p001-01.png when the PDF contains extractable images. The agent should compose markdown itself, using page renders as the dependable figure source and embedded rasters when they are cleaner, then call open_rabbithole with the returned ingest_id (or pass hole_id here to attach assets directly to an existing hole). For arXiv links, prefer fetching the HTML version and opening that markdown with base_url instead of ingesting the PDF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Optional page or range such as "3" or "1-20"; default processes the first 40 pages | |
| hole_id | No | Existing hole id to attach assets to directly; omit to stage assets for open_rabbithole | |
| file_path | Yes | Local path to a PDF file | |
| include_text | No | Whether to return per-page extracted text; defaults to true |