Tools Reference
GovInfo
3 tools for accessing GovInfo data. Uses same Congress.gov API key.
govinfo-search
Search GovInfo publications across all collections including bills, public laws, committee reports, and more.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| query | string | required | Search query text |
| collection | string | optional | 'BILLS', 'PLAW', 'CRPT', 'CREC', 'CHRG', 'FR', 'CFR' |
| congress | number | optional | Congress number |
| pageSize | number | optional | Number of results (max 100) |
Example
govinfo-search(query: "infrastructure", collection: "PLAW")govinfo-bill-text
Get the actual legislative text of a bill from GovInfo.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| congress | number | required | Congress number |
| billType | string | required | 'hr', 's', 'hjres', 'sjres' |
| billNumber | number | required | Bill number |
| version | string | optional | 'ih' introduced, 'rh' reported, 'eh' engrossed, 'enr' enrolled |
| maxLength | number | optional | Max character length (default 15000) |
Example
govinfo-bill-text(congress: 118, billType: "hr", billNumber: 1, version: "enr")govinfo-cbo-reports
Search CBO cost estimates and committee reports from GovInfo.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| query | string | required | Search query for committee reports |
| pageSize | number | optional | Number of results (max 50) |
Example
govinfo-cbo-reports(query: "defense authorization")