Fetch one paper: its summary, authors, venue, figures, linked resources,
or full text.
Accepts a Lacuna artifact ID or paper URL from search_lacuna, or an outside
identifier for the same paper: an arXiv ID (2310.06825), a DOI, or an
arXiv, DOI or OpenReview URL. Use this when the user names a specific paper
or after a search. For an outside identifier that is not in Lacuna's ML/AI
corpus, the result is `found: false` with a note saying so. The default
view is a summary; ask for the full text only when the summary does not
answer the question.
include_resources adds linked resources (code repositories, datasets, models,
and demos) in context and full views by default. Pass False to omit them;
other views ignore this option. Pass a resource entry's id to get_resource
for further details.
view selects the response shape. `context` requests Lacuna's compact
agent-oriented context by default, while the four single-field views
(blog/figures/concepts/neighbors) return isolated sub-resources:
- "context" (default, recommended): agent-oriented summary with
summary_markdown, authors, and a small figure preview. Start here for almost
everything. Available versions are included when present; to read another
version, use its artifact ID from the returned version list.
- "full": raw upstream paper record. Cheaper than context when you only
need basic metadata.
- "preview": compact card with unique fields `excerpt`, `excerpt_kind`,
`bookmarked`. Use for citation-style display.
- "blog": just the summary_markdown content, without the rest of the
context envelope.
- "figures": just the figures list.
- "concepts": just the concepts list.
- "neighbors": just the related-papers list.
- "fulltext": the paper itself, `max_chars` at a time (default 40,000;
1,000 to 100,000, other values are moved into that range) from
`offset`; pass the returned `next_offset` to keep reading.
`total_chars` is the length of the whole text, and an `offset` past it
returns empty text. `format` says what you got: "latex" is the arXiv
LaTeX source without its bibliography (citations appear as \cite
keys); "pdf_text" is text extracted from the PDF, where equations and
tables can be garbled. Lacuna holds text for most arXiv papers and for
fewer papers known only by DOI; a paper without text returns
`available: false`.
figure_limit (context view only) caps the figure preview (server default 3).
Pass 0 to suppress figure previews while keeping a `figures_truncated` signal.