fetch_paper_text
Retrieve full text and normalized section splits from academic papers. Choose auto, HTML, or PDF format to get structured content for analysis.
Instructions
Return best-effort full text + section split for a paper.
prefer: one of "auto" (default), "html" (force ar5iv HTML — arXiv only), or "pdf". Sections are normalised to lowercase canonical names: abstract, introduction, methods, experiments, results, discussion, conclusion, limitations, related_work.
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": {
"input_str": "<input_str>"
},
"name": "fetch_paper_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prefer | No | auto | |
| input_str | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| paper_id | Yes | ||
| sections | No | Section name (lowercased) -> text. Empty if extraction couldn't segment. | |
| char_count | Yes | ||
| source_url | Yes | ||
| extraction_method | Yes |