Get Norwegian legislation document
norlaw_get_documentResolve one Norwegian instrument and navigate its groups and provisions. Set outline to groups for group rows only, or full for every source node with portable locators. Combine part with outline to scope the outline. Without an explicit outline, a part or sibling range returns complete Markdown up to 64 KiB, or an exhaustive outline for a larger selection. Read compact or group rows with norlaw_get_provision using document.recordId and a locator containing the row’s sourcePath and document.build.
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": {
"document": "<document>"
},
"name": "norlaw_get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | A section, group, build-bound locator (sourcePath and build), or inclusive sibling section range. Omit for the whole document outline. | |
| edition | No | Select consolidated text or a promulgated gazette record. Omit to infer the edition from the citation. | |
| outline | No | Use compact navigation, groups only, or the full source tree. Applies to the whole document or an explicit part. Omit for compact document navigation or selected text. | |
| document | Yes | Returned recordId, Lovdata URL, dokID, refID, date code, journal number, or exact title or alias. | |
| language | No | Select the explicitly published language. Grunnloven defaults to Bokmål when unpinned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | Selection supplied by the caller or embedded in the citation. | |
| view | No | Source outline or complete text selected for this call. | |
| celex | No | CELEX identifiers linked by the source. | |
| error | No | Present when the call failed. Absent on success. | |
| found | No | Whether the document was resolved. | |
| notice | No | Guidance for unresolved or oversized selections. | |
| reason | No | Reason a document could not be selected. | |
| outline | No | Source-ordered nodes. Compact and groups rows use document.build with sourcePath. Full and automatic overflow rows include the whole locator. | |
| subunit | No | Published ministry subunit. | |
| coverage | No | Package coverage of this response. | |
| document | No | Exact document and source build selected. | |
| markdown | No | Complete Markdown for the selected subtree or sibling range. | |
| ministry | No | Published ministry responsible for the instrument. | |
| appliesTo | No | Area of application supplied by the source. | |
| selection | No | Ordered exact selectors for the selection. | |
| sizeBytes | No | Selected Markdown size in UTF-8 bytes. | |
| withdrawn | No | Explicit withdrawal evidence is present. | |
| candidates | No | Matching records when disambiguation is required. | |
| legalAreas | No | Legal areas assigned in the source. | |
| legalBasis | No | Instruments cited as legal basis. | |
| ministries | No | Individual issuing ministries as published. Omitted until an older build is refreshed. | |
| partReason | No | Why the part could not be resolved. | |
| attribution | No | Source, licence, and conversion notice. | |
| statusBasis | No | Publication context of the commencement evidence. | |
| alternatives | No | Other exact matches and published counterparts. | |
| commencement | No | Parsed commencement evidence. | |
| gazetteNotes | No | Published gazette notes annotating the record. | |
| journalNumber | No | Published gazette journal number with source padding. | |
| partCandidates | No | Exact candidates or enclosing address for an unresolved part. | |
| amendedDocuments | No | Normalized affected instrument references in published amendment evidence. | |
| promulgationDate | No | Observed gazette promulgation date. | |
| legislativeHistory | No | Published Norwegian legislative history references. |