Get Surrounding Provisions
legal_get_contextGet a stored text section and its neighbours in document order, including consecutive provisions, parts of a long provision or sections of a court decision. Serves questions that span consecutive provisions or need the surrounding context of a norm's scope.
Requires a norm_id from legal_search, legal_lookup or legal_get_toc. Returns target, before and after sections, with up to 10 neighbours in each direction. Each section's id is a valid norm_id for a subsequent call. A window may cross provision boundaries; norm_key identifies which provision each section belongs to. legal_get_toc gives the law-wide overview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Number of stored text sections after the target (max 10). | |
| before | No | Number of stored text sections before the target (max 10). | |
| norm_id | Yes | norm_id from legal_search, legal_lookup or legal_get_toc, or a section's id from legal_get_context. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||