Search Norwegian legislation text
norlaw_search_textSearch titles, headings and provision text, or find passages with authored links to a cited instrument or section. Combine query and cites to apply both filters. Read the source passage with norlaw_get_provision using the returned recordId and locator.
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": "norlaw_search_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cites | No | Require an authored source link to this instrument or a whole section. Supply only an instrument name or ID to match any link to it. | |
| kinds | No | Document kinds to include. Use norlaw_list_reference with topic kinds to check edition compatibility. | |
| limit | No | Ranked passage hits per page, capped at 200. Defaults to 25. | |
| query | No | Search words, phrases in double quotes or «guillemets», prefixes with *, and groups using uppercase AND, OR and binary NOT. Outside phrases, §, periods, commas, slashes, question marks and colons followed by whitespace separate terms. Required if cites is absent. | |
| offset | No | Ranked passage hits to skip before grouping by document. | |
| status | No | Commencement status. Defaults to current (in_force, partly_pending, or unknown) for consolidations and any for announcements. | |
| edition | No | Consolidated text by default. A search restricted to local_regulation defaults to promulgated announcements. | |
| documents | No | Restrict to these document citations or record IDs. | |
| legalArea | No | Legal area code or full label, chiefly available for laws. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| limit | No | Applied page size. | |
| total | No | Total matches before paging. | |
| groups | No | Hits grouped after ranking and pagination. | |
| notice | No | Guidance when there are no hits. | |
| offset | No | Number of skipped matches. | |
| status | No | Status filter applied. | |
| edition | No | Edition searched. | |
| ranking | No | Ranking and snippet conventions. | |
| coverage | No | Package coverage of this response. | |
| nextOffset | No | Offset of the next page when more matches exist. | |
| unresolved | No | Source document filters and citation targets unavailable to the search. | |
| attribution | No | Source, licence, and conversion notice. | |
| requestedLimit | No | Page size requested. |