Table of contents of a code
leginova_get_code_outlineRetrieve a legal code's table of contents with article counts and section or article slugs, starting broad and zooming in to read specific parts.
Instructions
Table of contents of a code (parts, books, titles, chapters, sections) with article counts and the section_slug / article_slug needed to read them. Start broad (depth 2), then zoom in with section_slug.
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": {
"code_slug": "<code_slug>"
},
"name": "leginova_get_code_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Levels to expand; articles are listed once the depth reaches them | |
| code_slug | Yes | Code slug, e.g. "code-du-travail-de-nouvelle-caledonie" (see leginova_list_codes) | |
| section_slug | No | Restrict the outline to this section |