get_text
Retrieve a specific passage from Sefaria by reference (e.g., 'Genesis 1:1', 'Shabbat 2b'). Get verses, chapters, or mishnah with optional context, version, and language.
Instructions
Retrieve a specific text passage from Sefaria by reference (e.g., 'Genesis 1:1', 'Shabbat 2b:10', 'Exodus 20:2-6'). This is the primary way to get text content for citations and study.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tref | Yes | The text reference (e.g., 'Genesis 1:1', 'Shabbat 2b', 'Mishnah Avot 1:1'). Can be a verse, chapter, daf, or mishnah. | |
| context | No | Optional: Number of surrounding sections to include for context. Default is 0. | |
| version | No | Optional: Specific version/translation to retrieve (e.g., 'Onkelos', 'Sefaria Community Translation'). If not specified, returns default version. | |
| language | No | Optional: Language code - 'en' for English, 'he' for Hebrew. Default is English. |