fh_library_read
Read a stored paper, drug label, or trial by ID as Markdown: get its heading outline, a specific section, or passages matching query terms, adding missing sources first.
Instructions
One piece of a stored document's Markdown, never the whole. No section/query: the outline (headings with word counts; full text or abstract only). section: that heading's own text (case-insensitive substring; a repeated heading as "Participants [3/12]"), capped at max_chars, its subsections listed. query: passages holding every term, each a window of at most 1000 chars with its section, best first, at most max_hits (more: how many further passages match); partial: true with missing_terms when no passage holds them all. section and query together: inside that section. A missing paper is added first (added: true).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "fh_library_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID as "type:value": a paper "pmid:30955454" (bare digits count as pmid) or "doi:10.5812/asjsm.110753" (a paper PubMed does not index; a DOI PubMed indexes is taken as its PMID), a drug label "dailymed:<set ID>" (the set ID from its DailyMed page URL), or a trial record "nct:05173896" (the eight digits; nct:NCT05173896 and a bare NCT05173896 are accepted). | |
| query | No | Two or three distinctive terms the paper itself would use — a measure and a unit, an outcome and a group, a compound name — not the claim. Passages holding all of them are returned, else the best partial matches. With section: inside that section. | |
| section | No | Heading from the outline (case-insensitive substring). | |
| max_hits | No | Cap for query passages (default 5). | |
| max_chars | No | Cap for section text (default 6000); passages are capped at 1000 chars each regardless. |