[Integrations](https://spiral.ai/integrations) › [Claude](https://spiral.ai/integrations/claude-desktop) › [California code article](https://spiral.ai/integrations/claude-desktop/california-code-article)

# How to Use California code article in Claude

Returns current statutory text for a selected California code article or other supported heading. Use it to read related provisions together rather than inspecting one section at a time.

|  |  |
| --- | --- |
| Model | California code article |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with California code article in Claude

- Use California code article to look this up and give me the result as a table.
- Pull the latest numbers from California code article and tell me what changed since last week.
- Check California code article and summarize what you find in three bullet points.
- Pull the newest data from California code article and give me the result as a table.
- Check California code article every morning and tell me only when something changed.

## How to set up California code article in Claude

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

### Use the Claude connector

1. **Add Spiral to Claude**: Click Add Spiral in Claude above. Claude opens Add custom connector with Spiral and its URL filled in; check them and click Continue. Without the link: in Claude open Customize › Connectors › Add › Add custom connector and paste this URL:

```text
https://api.spiral.ai/mcp
```

2. **Keep the detected sign-in and click Add**: Claude finds Spiral's sign-in by itself: leave Sign in now and Use Claude's published identity selected.

3. **Click Connect**: The connector page opens. Connect takes you to Spiral in your browser.

### Use the Spiral skill

1. **Send Claude 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.

```bash
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 article**: One request; the result comes back by polling or a webhook.

```bash
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_article",
    "input": {
      "law_code": "<law_code>"
    }
  }'
```

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

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-desktop

## California code article tools and prices

- [California Legislative Information (leginfo.legislature.ca.gov) · Code article](https://spiral.ai/tools/alexandria/leginfo-legislature-ca-gov/legislation/code_article) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| part |  |  | part |
| title |  |  | title |
| article |  |  | Article as in the site URL, e.g. '2.'; for the Constitution the numeral, e.g. 'XIII A'. Default ''. |
| chapter |  |  | chapter |
| division |  |  | Division as in the site URL, e.g. '3.'; default ''. |

## What can you do with California code article in Claude?

Turn California bill records or statutory text into a focused research brief. A chat app can explain the retrieved wording, organize procedural actions, or summarize recorded votes while keeping the source material available for inspection.

### 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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Claude guides](https://spiral.ai/integrations/claude-desktop)

## California code article in other agents

- [Amp](https://spiral.ai/integrations/amp/california-code-article)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/california-code-article)
- [Claude Code](https://spiral.ai/integrations/claude-code/california-code-article)
- [Cline](https://spiral.ai/integrations/cline/california-code-article)
- [Codex](https://spiral.ai/integrations/codex/california-code-article)
- [Cursor](https://spiral.ai/integrations/cursor/california-code-article)
- [Devin](https://spiral.ai/integrations/devin/california-code-article)
- [dots](https://spiral.ai/integrations/dots/california-code-article)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/california-code-article)
- [Gemini](https://spiral.ai/integrations/gemini/california-code-article)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/california-code-article)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/california-code-article)
- [goose](https://spiral.ai/integrations/goose/california-code-article)
- [Grok](https://spiral.ai/integrations/grok/california-code-article)
- [Grok Build](https://spiral.ai/integrations/grok-build/california-code-article)
- [Hermes](https://spiral.ai/integrations/hermes/california-code-article)
- [Instinct](https://spiral.ai/integrations/instinct/california-code-article)
- [Manus](https://spiral.ai/integrations/manus/california-code-article)
- [Muse](https://spiral.ai/integrations/muse/california-code-article)
- [Muse Code](https://spiral.ai/integrations/muse-code/california-code-article)
- [n8n](https://spiral.ai/integrations/n8n/california-code-article)
- [Notion](https://spiral.ai/integrations/notion/california-code-article)
- [OpenClaw](https://spiral.ai/integrations/openclaw/california-code-article)
- [opencode](https://spiral.ai/integrations/opencode/california-code-article)
- [Perplexity](https://spiral.ai/integrations/perplexity/california-code-article)
- [Raycast](https://spiral.ai/integrations/raycast/california-code-article)
- [VS Code](https://spiral.ai/integrations/vscode/california-code-article)
- [Windsurf](https://spiral.ai/integrations/windsurf/california-code-article)
- [Zapier](https://spiral.ai/integrations/zapier/california-code-article)

## More Claude guides

- [California bill votes](https://spiral.ai/integrations/claude-desktop/california-bill-votes)
- [California code section](https://spiral.ai/integrations/claude-desktop/california-code-section)
- [California bill text](https://spiral.ai/integrations/claude-desktop/california-bill-text)
- [California code table of contents](https://spiral.ai/integrations/claude-desktop/california-code-table-of-contents)
- [California bill status](https://spiral.ai/integrations/claude-desktop/california-bill-status)
- [Canada Gazette consultations](https://spiral.ai/integrations/claude-desktop/canada-gazette-consultations)

## Questions about California code article in Claude

**Can Claude use California code article?**

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

**How much does California code article cost in Claude?**

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

**Do I need an Alexandria account to use California code article in Claude?**

No. Spiral runs California code article 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 article in Claude?**

About two minutes: add Spiral to Claude, then keep the detected sign-in and click Add, then click Connect.

**Does Claude wait while California code article runs?**

California code article runs in the background. Claude 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.

