Back to catalog
Cortexa research tool·genomics·EuropePMC
EuropePMC Get Fulltext Snippets
Fetch an article's full text (best-effort) and return bounded text snippets around provided terms. Uses deterministic fallbacks: Europe PMC fullTextXML → NCBI PMC OAI (JATS) → NCBI efetch (XML) → PMC HTML. Returns a machine-readable retrieval_trace so callers can see exactly what succeeded/failed.
Livelast probed 2026-04-30 23:07Z· 116msCortexa
Status
The most recent probe succeeded. Safe to call from the agent today.
- Last probed
- 1d ago
- Last success
- 1d ago
- Last latency
- 116ms
Schema
JSON Schema the agent (or your API call) must match.
{
"anyOf": [
{
"required": [
"terms"
]
},
{
"required": [
"keywords"
]
}
],
"properties": {
"article_id": {
"description": "Europe PMC article ID within `source_db` (e.g., PMID for source_db='MED').",
"type": "string"
},
"fulltext_xml_url": {
"description": "Direct Europe PMC fullTextXML URL (recommended when you already have it from EuropePMC_search_articles).",
"type": "string"
},
"keywords": {
"description": "Alias for `terms` (case-insensitive). Provided for backwards/UX compatibility.",
"items": {
"type": "string"
},
"type": "array"
},
"max_snippets_per_term": {
"default": 3,
"description": "Maximum number of snippets returned per term.",
"maximum": 10,
"minimum": 1,
"type": "integer"
},
"max_total_chars": {
"default": 8000,
"description": "Hard cap on total characters returned across all snippets.",
"maximum": 50000,
"minimum": 1000,
"type": "integer"
},
"pmcid": {
"description": "PMC ID (e.g., 'PMC11237425' or '11237425'). If provided, the tool derives the Europe PMC fullTextXML URL.",
"type": "string"
},
"source_db": {
"description": "Europe PMC source database (e.g., 'MED' or 'PMC'). Used with `article_id` to derive the fullTextXML URL.",
"type": "string"
},
"terms": {
"description": "Terms to search for in the extracted full text (case-insensitive).",
"items": {
"type": "string"
},
"type": "array"
},
"window_chars": {
"default": 220,
"description": "Context window size (characters) before and after each match.",
"maximum": 2000,
"minimum": 20,
"type": "integer"
}
},
"type": "object"
}Examples (1)
Default EuropePMC Get Fulltext Snippets call
public-safeinput
{
"keywords": [],
"max_snippets_per_term": 1,
"max_total_chars": 1,
"terms": [],
"window_chars": 1
}Expected response keys: success
Anonymous-safe example. Rate-limited; no sign-in required.
Identifiers
- Catalog ID
- tu_EuropePMC_get_fulltext_snippets
- Tool name
- EuropePMC_get_fulltext_snippets
- Added
- 2026-04-30 22:47Z
- Tags
- tooluniverse