Fetch a source record
fetchFetch one record by id: a work ("sc:mn10"), an edition ("sc:mn10/en/sujato", "lh:words-of-the-buddha/heart-sutra") or a passage ("sc:mn10/en/sujato:1.1-1.6", "lh:words-of-the-buddha/heart-sutra:3-5", "cbeta:T08n0251_p0848c07-p0848c10", "84000:toh21:1.3-1.7"), or a catalogue record ("bdrc:P252"). Returns the text with segment or paragraph references when the licence allows, and always the citation and canonical URL. Long texts are paged; follow metadata.nextId. metadata.related lists records to fetch next, such as the author's BDRC entry.
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": "fetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record id from `search` or `resolve_work` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | ||
| text | Yes | ||
| title | Yes | ||
| metadata | Yes |