Read parliamentary document
riksdag_get_documentRead a document status, decisions, linked records and text. Select sections and follow complete continuation calls to read long reports or consolidated SFS statutes. SFS text is consolidated published text, not a point-in-time legal version.
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": {
"documentId": "<documentId>"
},
"name": "riksdag_get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision | No | Revision returned by a previous call; rejects changed records. | |
| sections | No | Select metadata, decisions, reservations, activities, properties, attachments, references, stakeholders, text or source_html. Omit for metadata, complete outline and first text page. | |
| documentId | Yes | Document ID from riksdag_search_documents, or unambiguous SFS YYYY:N identifier. | |
| htmlLength | No | Explicit source HTML length in code points; defaults start at 8000 and fit the complete response; explicit lengths are honored. | |
| htmlOffset | No | Source HTML offset in Unicode code points. | |
| textLength | No | Explicit text length in code points; defaults start at 8000 and fit the complete response; explicit lengths are honored. | |
| textOffset | No | Text offset in Unicode code points. | |
| sectionLimit | No | Requested entries per selected array section; applied maximum 100. | |
| sectionOffset | No | Offset applied independently to each selected array section. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Selected canonical text page, unchanged on both surfaces. | |
| error | No | Present when the call failed. Absent on success. | |
| found | No | Whether the source record exists. | |
| source | No | Required attribution to the Swedish Parliament. | |
| notices | No | All applicable notices, including an empty list. | |
| outline | No | Every selectable section and its complete size. | |
| guidance | No | How to resolve a missing identifier. | |
| metadata | No | Source publication metadata and links. | |
| revision | No | Hash of the complete normalized record. | |
| decisions | No | Selected page of authoritative report points. | |
| truncated | No | At least one selected array section has more entries or a response-fitted page; follow its sectionPages continuation. | |
| activities | No | Selected process-event page. | |
| documentId | No | Normalized document identifier. | |
| htmlOffset | No | Returned HTML offset in code points. | |
| properties | No | Selected property page. | |
| references | No | Selected relationship page. | |
| sourceHtml | No | Separately selected original source HTML page. | |
| textOffset | No | Returned text offset in Unicode code points. | |
| attachments | No | Selected linked-attachment page. | |
| htmlHasMore | No | Whether source HTML remains. | |
| retrievedAt | No | Source fetch time, retained unchanged on cache hits. | |
| textHasMore | No | Whether canonical text remains. | |
| nextHtmlCall | No | Complete continuation for source HTML. | |
| nextTextCall | No | Complete continuation for canonical text. | |
| reservations | No | Selected reservation page. | |
| sectionPages | No | Independent counts and complete continuation for every selected array. | |
| stakeholders | No | Selected page of source participants, retaining entries without an IID. | |
| textAvailable | No | Whether a published canonical body exists. | |
| upstreamQuery | No | Upstream query echo; not proof that a filter was applied. | |
| effectiveQuery | No | Deterministic normalized input, applied defaults and local filters. | |
| htmlTotalLength | No | Complete HTML code-point length. | |
| textTotalLength | No | Complete canonical text length in code points. | |
| upstreamWarnings | No | Warnings supplied by the source. | |
| htmlReturnedLength | No | Returned HTML code points. | |
| textRepresentation | No | Source SFS text or canonical converted Markdown. | |
| textReturnedLength | No | Actual returned text code points. |