get_bill_content
Retrieve the structured content of a Washington State bill in XML, HTML, or PDF format. Specify the bill number and optional chamber or biennium to access the full bill document.
Instructions
Retrieve the content of a bill in an AI-friendly format.
This tool fetches the actual content of a bill document, defaulting to XML format which is most suitable for AI processing due to its structured nature. It can also return HTML content or a link to the PDF version.
Args: bill_number: Bill number as an integer (e.g., 1234 for HB1234, 5678 for SB5678) biennium: Legislative biennium in format "YYYY-YY" (e.g., "2025-26") (optional, defaults to current) chamber: Chamber name - "House" or "Senate" (optional if bill_number is unique across chambers) bill_format: Document format - "xml" (default), "htm", or "pdf"
Returns: For XML and HTM formats: Dict containing the document content and metadata For PDF format: Dict containing the URL to access the PDF and metadata
Note: This tool complements the get_bill_documents tool, which provides metadata about available documents. This tool provides the actual content of the bill.
When citing bill content in responses, consider including a link to the PDF version
using the format: https://lawfilesext.leg.wa.gov/biennium/{biennium}/Pdf/Bills/{chamber}%20Bills/{bill_number}.pdf
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill_number | Yes | ||
| biennium | No | ||
| chamber | No | ||
| bill_format | No | xml |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |