Skip to content

politiclaw_get_bill_details

  • Label: Fetch a single federal bill
  • Group: Bills and votes
  • Source file: packages/politiclaw-plugin/src/tools/bills.ts

Description

Fetch one bill's full detail (sponsors, subjects, summary, latest action) from api.congress.gov (tier 1). Accepts either a canonical billId (e.g. '119-hr-1234') or congress + billType + number. Requires plugins.entries.politiclaw.config.apiKeys.apiDataGov.

Parameters

NameRequiredTypeDescription
billIdnostringCanonical bill id: '<congress>-<billType>-<number>', e.g. '119-hr-1234'.
congressnointeger
billTypenostring
numbernostring
refreshnoboolean

Raw Schema

json
{
  "type": "object",
  "properties": {
    "billId": {
      "description": "Canonical bill id: '<congress>-<billType>-<number>', e.g. '119-hr-1234'.",
      "type": "string"
    },
    "congress": {
      "minimum": 1,
      "type": "integer"
    },
    "billType": {
      "type": "string"
    },
    "number": {
      "type": "string"
    },
    "refresh": {
      "type": "boolean"
    }
  }
}

Built for people who want local-first political tooling.