# gc_get_bill_text

> Get a bill's text

The mirrored full text of a bill in Markdown, converted from the official Congress.gov XML (headings, tables, and quoted amendatory text preserved). Omit "sections" for the whole document, paging with next_cursor; pass section ids (e.g. ["sec-101"]) to read only those — the way to work with a long act. List the ids with gc_list_bill_sections; simple resolutions have none and always return in full. Id format: congress/type/number (e.g. 119/hr/3076).

## Input

| Parameter | Type | Description |
| --- | --- | --- |
| idRequired | string | Bill key "congress/type/number", e.g. "119/hr/3076". |
| version | string | Text version code, e.g. "ih" or "eh". Defaults to the newest mirrored print. |
| sections | string[] | Section ids from gc_list_bill_sections, e.g. ["sec-101"]. Omit for the whole document. |
| cursor | string | Continue reading from a previous result. |

## Annotations

```
{
  "readOnlyHint": true,
  "openWorldHint": false
}
```

## Examples

### A bill's text in Markdown

The official Congress.gov XML converted to Markdown: the whole document, or just the sections asked for.

```
{
  "id": "119/hr/3076"
}
```

```
{
  "type": "bill_text",
  "id": "119/hr/3076",
  "title": "AI Accountability Act",
  "has_text": true,
  "representation": "markdown",
  "version": {
    "code": "ih",
    "name": "Introduced in House",
    "date": "2026-03-01",
    "format": "xml"
  },
  "returned": "full_document",
  "sections_available": true,
  "total_sections": 3,
  "outline": [
    {
      "id": "sec-1",
      "label": "SEC. 1. Short title"
    },
    {
      "id": "sec-2",
      "label": "SEC. 2. Definitions"
    },
    {
      "id": "sec-101",
      "label": "SEC. 101. Audits"
    }
  ],
  "markdown": "# H. R. 3076\n\nAI Accountability Act.\n\n## SEC. 1. Short title\n\nThis Act may be cited as the AI Accountability Act.\n\n## SEC. 2. Definitions\n\nIn this Act, the term model means a trained system.\n\n## TITLE I—Oversight\n\n### SEC. 101. Audits\n\nThe Secretary shall audit each covered model.\n\n> ### SEC. 9. Inserted\n\n> Quoted statute text.",
  "truncated": false,
  "next_cursor": null,
  "source": "congress.gov",
  "links": {
    "governmentcontext": "https://governmentcontext.com/bills/119/hr/3076",
    "source": "https://www.congress.gov/119/bills/hr3076/BILLS-119hr3076ih.xml"
  }
}
```

---

Source: https://www.governmentcontext.com/docs/tools/gc_get_bill_text
Every Government Context docs page is available as Markdown: add `.md` to its URL.
Index of the docs, the guides, and every MCP tool: https://www.governmentcontext.com/llms.txt
