get_pdf_content
Get the full text of a paper from your library by routing to an available source: PubMed Central, local PDF, web PDF, or free open-access PDF. Use when you need to read the paper's content.
Instructions
Get the full text of a paper in the library. Routes to the best available source: PubMed Central, local PDF, web PDF download, or free open-access PDF. Use this when the user wants to read a paper's content; to only CHECK whether a PDF exists without fetching it, use get_item_attachments first. Set extract_text=true to extract and return the text inline; otherwise returns a file path or PMCID for the caller to read. The response always includes a content_source field (one of: pmc, local_pdf, web_pdf, free_pdf_, extracted_text, not_found) that determines which other fields are present.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_key | Yes | ||
| extract_text | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |