Get law section
get_law_sectionGet the full text of a specific law section.
Retrieve law text by book code and section number, or by law ID.
For example, get_law_section(book_code="BGB", section="823") returns
the text of section 823 of the German Civil Code.
By default the complete, untruncated ``content`` is returned as plain
text (HTML tags removed, entities decoded, whitespace normalized; one
line per paragraph or list item). Set ``offset`` and/or ``length`` to
get a ``snippet`` of that plain text instead (see get_case for the
snippet fields and pagination via ``next_offset``).
Args:
book_code: Law book code (e.g. "BGB", "StGB", "GG").
section: Section identifier. Accepts bare numbers ("823",
"20", "16a") or prefixed forms ("§ 823", "§823",
"Art. 14", "Art 14", "Artikel 1"). The prefix spelling
does not have to match the book: "Art. 20", "Artikel 20"
and "20" all find Art 20 GG. Only exact sections match,
never a longer number that contains the input. The
``section`` field on the response is whatever the DB
stores, which differs by book convention: BGB / StGB /
ZPO etc. store ``§ N`` (e.g. ``"§ 823"``), article-based
books store e.g. ``"Art 1"`` (GG) or ``"Art. 6"``
(DSGVO).
law_id: Direct law database ID (alternative to book_code+section).
offset: Start position in plain-text characters (default 0).
length: Number of plain-text characters to return. 0 (default)
means "until the end". Leave both at 0 for the full content.
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": "get_law_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| law_id | No | ||
| length | No | ||
| offset | No | ||
| section | No | ||
| book_code | No |