Bill statutory-text table of contents for section navigation (GovInfo)
get_bill_tocGet a shallow table of contents -- divisions, titles, subtitles, and sections -- for a bill's statutory text from GovInfo, as a navigation aid for discovering the section_id values to pass to get_bill_section or search_bill_text.
Instructions
Get a shallow table of contents -- divisions, titles, subtitles, and sections -- for a bill's
statutory text from GovInfo, as a navigation aid for discovering the section_id values to pass
to get_bill_section or search_bill_text.
This is a navigation aid, not the answer path: it returns structure and headers, never the
statutory text itself. depth is clamped to 1-5 (default 2) and total nodes are capped at 500.
Two different things can be incomplete, and they are reported separately. depth_reduced is
true when the node cap served a shallower tree than you asked for -- compare depth against
requested_depth to see by how much. toc_truncated is true when more exists below what you
got, which includes the case where your depth was honored in full; toc_note then gives the
depth needed to reveal the rest, or says so when no depth can.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| number | Yes | ||
| version | No | ||
| congress | Yes | ||
| bill_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||