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.
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 |