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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"norm_id": "<norm_id>"
},
"name": "legal_get_context"
}
}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 | |||