Bill statutory-text table of contents for section navigation (GovInfo)
get_bill_tocGet a bill's structural table of contents to discover section IDs, which you can then use to retrieve specific sections or search the bill's 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.
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": {
"congress": "<congress>",
"bill_type": "<bill_type>",
"number": "<number>"
},
"name": "get_bill_toc"
}
}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 | |||