MCP server · Tools
Read a text
Read a section of a Latin or Greek work, or a graded passage, in the original.
TOOL
get_textRead onlyIdempotentA work on its own returns its opening section; a citation inside a section returns the whole section. The answer has the text, its citation, canonical url, CTS URN, the edition's credit and licence, and prev and next links: pass next.url as ref to keep reading. include adds the stored word analysis (analysis) and context notes (context).
Input
| Name | Description |
|---|---|
refstring | RequiredWhat to read: an Interlinea URL (https://interlinea.aeterna-institute.org/library/latin/virgil/aeneid/1.46, or /read/latin/virgil-aeneid for a graded passage), a CTS URN (urn:cts:latinLit:phi0690.phi003.perseus-lat2:1.46) or a citation ("Virgil, Aeneid 1.46", "Iliad 1.1"). Up to 500 characters. |
includearray of string | OptionalExtra parts to add. Each costs tokens. Items: one of |
Output
structuredContent has these fields, and content repeats the same JSON as one text item.
| Name | Description | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kindstring | section: a reading section of a library work. passage: a graded passage. One of | ||||||||||||||||||||||||||||||||||||||||||||
langstring | Language code: la (Latin) or grc (Ancient Greek). One of | ||||||||||||||||||||||||||||||||||||||||||||
languagestring | |||||||||||||||||||||||||||||||||||||||||||||
titlestring | "Aeneid 1.1-11" for a section; the passage title for a graded passage. | ||||||||||||||||||||||||||||||||||||||||||||
citationstring | "Virgil, Aeneid 1.1-11": quote this when you cite the text. | ||||||||||||||||||||||||||||||||||||||||||||
refstring or null | The section's first citation, as used in its URL. Null for a graded passage. | ||||||||||||||||||||||||||||||||||||||||||||
levelinteger or null | Graded passages: difficulty 1 to 5. | ||||||||||||||||||||||||||||||||||||||||||||
urnstring or null | CTS URN, e.g. urn:cts:latinLit:phi0690.phi003.perseus-lat2:1.1-1.11. Null when the edition has none (The Latin Library's own numbering). | ||||||||||||||||||||||||||||||||||||||||||||
urlstring | Canonical page. | ||||||||||||||||||||||||||||||||||||||||||||
apistring | Absolute URL. | ||||||||||||||||||||||||||||||||||||||||||||
markdownstring or null | The same text as Markdown. | ||||||||||||||||||||||||||||||||||||||||||||
authorobject | 2 fields
| ||||||||||||||||||||||||||||||||||||||||||||
workobject | 3 fields
| ||||||||||||||||||||||||||||||||||||||||||||
verseboolean | |||||||||||||||||||||||||||||||||||||||||||||
wordsinteger | |||||||||||||||||||||||||||||||||||||||||||||
textstring | Plain text; verse keeps its line breaks. | ||||||||||||||||||||||||||||||||||||||||||||
prevobject or null | 4 fields
| ||||||||||||||||||||||||||||||||||||||||||||
nextobject or null | Follow next.api to read on without searching again.4 fields
| ||||||||||||||||||||||||||||||||||||||||||||
creditobject | 5 fields
| ||||||||||||||||||||||||||||||||||||||||||||
analysisobject | OptionalOnly with include=analysis.5 fields
| ||||||||||||||||||||||||||||||||||||||||||||
contextobject | OptionalOnly with include=context.3 fields
|
The same reads as GET /api/v1/text, with the same shape.