Get Act Structure (local module)
get_act_structureRetrieve the hierarchical structure of an Australian Act, showing parts, divisions, sections, schedules, and clauses as a nested tree. Works offline using installed local data.
Instructions
Return the containment tree of an Act (Act -> Part -> Division -> section/schedule/clause) by walking 'act_provision' edges in an installed local data module (offline, closed-world). Returns a nested tree or a typed not-found result. Requires @duckdb/node-api and at least one installed module.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| act | Yes | Act work identity or citation | |
| depth | No | Max tree depth; default 12 (also the cycle backstop) | |
| format | No | json | |
| module | No |