Document and contents
get_documentSign-in required: call connect(email) and connect_verify first (free, one email) unless this connection is already signed in. A document's identity and its table of contents (turinys), WITHOUT its text. Call this before reading: the Civil Code (Civilinis kodeksas) runs to 1.7 million characters. Ids come from search results (įstatymas or nutartis). An ECHR id (coe.hudoc:) or application number gives the case's catalogue card: Avokata holds no ECHR text - read it at text_availability.where (HUDOC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | Optional: one chapter or approved document of a long act - a label from its contents' `location` (`IV SKYRIUS`, `Darbo laiko ir poilsio laiko ypatumų ... aprašas`). Lists that part's units only; without it a long act's contents come by chapter. | |
| session | No | The `session` value the sign-in returned. Pass it on every call in this conversation, so the sign-in survives however this client handles connections; omit it when the user connected with Sign in (OAuth) or a key. | |
| document_id | Yes | The `id` of a search hit, or the `document.id` beside it. NOT `document.number`, which is the act's official number (`XIII-2221`) and is not an id. | |
| jurisdiction | No | Which jurisdiction the id belongs to (`LT`). Omit for the account's own. | |
| contents_limit | No | Optional: unit rows per page with `contents_offset`, default 400, at most 1,000 (a page also ends early to stay within the answer's size, and says where the next one starts). | |
| contents_offset | No | Optional: list the contents as unit rows from this position (0 = the first unit). A long document's contents otherwise come by chapter; every answer states the true total (`contents_page.units_total`) and the next offset. |