Spiral gives your agent every tool with one account. Browse the tools →

Cline · Public Records

How to Use GovInfo U.S. Code browse in Cline

Returns the U.S. Code's structure within an edition, from titles down to sections. Use it to explore neighboring provisions and find document locations without a keyword search.

Prompts to try with GovInfo U.S. Code browse in Cline

Copy an example into Cline, or ask in your own words.

Use GovInfo U.S. Code browse to look this up and give me the result as a table. Save the result in ./assets.

GovInfo U.S. Code browseCline
Try asking
  • Pull the latest numbers from GovInfo U.S. Code browse and tell me what changed since last week.

  • Check GovInfo U.S. Code browse and summarize what you find in three bullet points.

  • Pull the newest data from GovInfo U.S. Code browse and give me the result as a table.

  • Check GovInfo U.S. Code browse every morning and tell me only when something changed.

How to set up GovInfo U.S. Code browse in Cline

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    In the Cline panel, click the MCP Servers icon and open the Remote Servers tab. Enter:

    cline mcp add spiral https://api.spiral.ai/mcp --transport http --yes
  2. Sign in

    Open the Configure tab and click Authenticate on the Spiral server. Sign in to Spiral, pick the organization and click Authorize. No API key.

  3. Check it

    Spiral shows as connected on the Configure tab. In the CLI:

    cline config mcp

Use the Spiral skill

  1. Send Cline this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run GovInfo U.S. Code browse

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "govinfo-gov/legislation/browse_collection",
        "input": {
          "collection": "<collection>"
        }
      }'

Then paste one of the prompts above: Cline finds GovInfo U.S. Code browse on Spiral, shows the price and runs it.

GovInfo U.S. Code browse providers and prices

Spiral runs GovInfo U.S. Code browse through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
GovInfo · Browse collection
govinfo-gov/legislation/browse_collection

What can you do with GovInfo U.S. Code browse in Cline?

Build a federal publication reader with U.S. Code navigation, source text, and edition comparisons. A coding agent can use GovInfo documents to populate the interface and connect each passage to its publication metadata.

Build a federal statute research reader

Create a reader that starts with publication selection, lets researchers explore the U.S. Code, and opens cited sections with their metadata and text. Add edition selection for historical comparisons and topic search for discovery.

Prepare a legislative research packet

Choose publication series, find documents about a policy topic, and organize the relevant U.S. Code provisions by chapter. Include document metadata, readable text, and selected historical editions for a reviewer.

Create a federal legal research lesson

Build an exercise around a public statute: identify its publication collection, locate its chapter, search for related publications, and retrieve a cited section. Have students compare selected editions and distinguish document metadata from document text.

Assemble an edition-specific reference archive

Select federal publication collections and collect the documents needed for a policy handbook. Organize U.S. Code sections within their titles, preserve publication metadata and text, and include earlier editions where the handbook discusses changes.

Map a U.S. Code chapter

Walk a chapter's structure and assemble its section headings, document locations, and text into a navigable reading list. Use the map to examine neighboring provisions that a keyword search might miss.

Questions about GovInfo U.S. Code browse in Cline

Can Cline use GovInfo U.S. Code browse?

Yes. Add Spiral to Cline as an MCP server, and Cline can find and run GovInfo U.S. Code browse like any built-in tool.

How much does GovInfo U.S. Code browse cost in Cline?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Cline plan is separate.

Do I need an Alexandria account to use GovInfo U.S. Code browse in Cline?

No. Spiral runs GovInfo U.S. Code browse on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up GovInfo U.S. Code browse in Cline?

About two minutes: add the server, then sign in, then check it.

Does Cline wait while GovInfo U.S. Code browse runs?

GovInfo U.S. Code browse runs in the background. Cline starts the run, checks on it and gives you the json when it's ready.

Does GovInfo include every government document?

GovInfo covers official publications from all three branches of the federal government. Its search only includes documents stored on GovInfo, so it is not a complete index of everything government agencies publish.

How far back does GovInfo's U.S. Code archive go?

GovInfo provides virtual main editions of the U.S. Code from 1994 onward. You can browse them by year and then title.

How often is the U.S. Code updated?

The publication cycle includes a new main edition every six years and annual supplements. A GovInfo edition is a published snapshot, so choose the edition deliberately when comparing statutory wording.

Does a recent modification date mean a publication is new?

GovInfo's lastModified value records when a package was added or updated. It differs from the publication date, so a recent modification alone does not establish when the document was issued.

Is every document available in the same formats?

Most GovInfo documents are available as PDF and text. Other formats depend on the publication, and the document details page identifies the available files.

Get started

Start using GovInfo U.S. Code browse in Cline

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Cline:

Set up Cline

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options