A paragraph in context
get_contextOne paragraph of a work with the paragraphs around it (two each side by default), the section title and where it falls in the section; every paragraph in each of the work's languages, with its permanent link and citation. Useful after a find, a concordance hit or a reference, to read a quotation in its setting.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Paragraphs on each side. Default 2. | |
| id | No | The work: its id or address name from search_shelf (e.g. "plato-republic"), or a scriptura.si link. | |
| url | No | A scriptura.si paragraph link (…/7/#p-3). | |
| after | No | ||
| before | No | ||
| section | No | ||
| paragraph | No | Paragraph, counted from 1 as read_work counts ("p-3", the page anchor, also works). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| url | No | Permanent scriptura.si link. | |
| cite | No | Ready citation naming Scriptura, ending with the link. | |
| code | No | ||
| hint | No | ||
| work | No | ||
| after | No | ||
| error | No | What went wrong, in plain words. | |
| title | No | ||
| author | No | ||
| before | No | ||
| target | No | ||
| section | No | ||
| position | No | ||
| resource | No | The same passage as a scriptura:// resource, readable as Markdown with resources/read. | |
| sections | No | ||
| translator | No | ||
| section_url | No | Permanent scriptura.si link. | |
| suggestions | No | ||
| section_title | No |