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

Gemini CLI · Public Records

How to Use California code section in Gemini CLI

Returns the current text of a cited California code section. Use it when you already know the citation and need the provision itself rather than a bill proposing to change it.

Prompts to try with California code section in Gemini CLI

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

Use California code section to retrieve Civil Code section 1798.100 and add the statutory text to this project's privacy reference.

California code sectionGemini CLI
Try asking
  • Use California code section to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from California code section and tell me what changed since last week.

  • Check California code section and summarize what you find in three bullet points.

  • Pull the newest data from California code section and give me the result as a table.

How to set up California code section in Gemini CLI

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

Use Spiral's MCP server

  1. Add the server

    Or add it to ~/.gemini/settings.json yourself:

    gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start gemini and run:

    /mcp auth spiral
  3. Check it

    In Gemini CLI, run /mcp. From your shell:

    gemini mcp list

Use the Spiral skill

  1. Send Gemini CLI 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 California code section

    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": "leginfo-legislature-ca-gov/legislation/code_section",
        "input": {
          "section": "<section>",
          "law_code": "<law_code>"
        }
      }'

Then paste one of the prompts above: Gemini CLI finds California code section on Spiral, shows the price and runs it.

California code section providers and prices

Spiral runs California code section through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records

What can you do with California code section in Gemini CLI?

Build a California statutory reference or legislative research view inside your project. A coding agent can work with bill text, action records, votes, or code structure and connect the retrieved material to the project’s existing screens and documentation.

Prepare a consumer privacy policy brief

Find California consumer privacy bills, read their proposed changes, and document their status, procedural history, and votes. Use the Civil Code’s contents, relevant articles, and cited sections to compare those proposals with current statutory text.

Build a housing legislation research packet

Research bills mentioning tenant protections or housing development, then assemble their text, status, action timelines, and recorded votes. Locate the relevant code headings and read the affected provisions together and individually for a proposal-versus-current-law comparison.

Review employment policy proposals

Find bills about wages, leave, or employment contracts and examine their wording, progress, history, and votes. Navigate the relevant Labor Code or Business and Professions Code headings to assemble the current provisions for an HR policy review.

Assemble an energy policy dossier

Search a session’s bill text for electricity or energy storage proposals and collect the relevant measures’ text, status, history, and votes. Browse Public Utilities Code headings and retrieve the articles and individual sections needed to explain the existing statutory context.

Create a statutory reference for a project

Browse a code’s contents to select the relevant statutory headings. Read each selected article for context, then retrieve individual cited sections for the project’s reference material.

Teach a bill-to-code research exercise

Have students discover a bill, read its text, and reconstruct its published status, history, and votes. Then use the code contents, article text, and individual sections to explain the difference between a legislative measure and current statutory language.

Maintain a public policy watch

Repeat topic searches and check selected bills for changes to text, status, history, or votes. Revisit the relevant code contents and statutory text to identify published changes that deserve a closer review.

Questions about California code section in Gemini CLI

Can Gemini CLI use California code section?

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run California code section like any built-in tool.

How much does California code section cost in Gemini CLI?

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

Do I need an Alexandria account to use California code section in Gemini CLI?

No. Spiral runs California code section on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up California code section in Gemini CLI?

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

Does Gemini CLI wait while California code section runs?

California code section runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

What California law does this source cover?

California Law includes 29 subject-area codes, the State Constitution, and statutes. Its code collection presents laws currently in effect.

How far back do the bill records go?

The newer California Legislative Information bill database covers the 1999/2000 session onward. The older leginfo.ca.gov site is an archive and stopped updating on November 30, 2016.

How quickly do bill actions appear?

The Assembly Chief Clerk’s November 2020 guide describes the public LegInfo website as receiving nightly updates with information entered that day. That describes source publication, rather than a refresh guarantee for an extracted response.

Does a bill’s current text show the law currently in effect?

The bill record contains the measure’s current text, digest, and version list. The California Law collection separately presents laws currently in effect, so use the code text when your question concerns an existing statutory provision.

What can I check beyond a bill’s latest status?

California Legislative Information also publishes complete bill history and roll-call votes. Those records let you examine earlier procedural actions and recorded votes rather than relying on the status alone.

Get started

Start using California code section in Gemini CLI

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

Paste this into Gemini CLI:

Set up Gemini CLI

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