[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [Legistar legislation search](https://spiral.ai/integrations/vscode/legistar-legislation-search)

# How to Use Legistar legislation search in VS Code

Returns legislative files with titles, types, statuses, responsible bodies, and key dates. Use it to find relevant ordinances or resolutions before examining an individual file's history and attachments.

|  |  |
| --- | --- |
| Model | Legistar legislation search |
| 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 Legistar legislation search in VS Code

- Use Legistar legislation search to find Seattle housing proposals introduced from January through June 2026 and save their titles, statuses, and key dates as project data.
- Use Legistar legislation search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Legistar legislation search and tell me what changed since last week.
- Check Legistar legislation search and summarize what you find in three bullet points.
- Pull the newest data from Legistar legislation search and give me the result as a table.

## How to set up Legistar legislation search in VS Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code 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 Legistar legislation search**: 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": "legistar-com/legislation/legislation_search",
    "input": {
      "client": "<client>"
    }
  }'
```

Then paste one of the prompts above: VS Code finds Legistar legislation search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/vscode

## Legistar legislation search tools and prices

- [Legistar council legislation and meetings · Legislation search](https://spiral.ai/tools/alexandria/legistar-com/legislation/legislation_search) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 200 | 1 | 1-based page; has_more says whether the next page exists. |
| sort | passed_desc, introduced_desc, modified_desc, agenda_desc, file_asc | — | Ordering. Defaults to modified_desc with modified_since, passed_desc with a passed window, otherwise introduced_desc. |
| type |  | — | Substring of the matter type name (Ordinance, Resolution, Council Bill, Bill, Appointment). Type names differ per client. |
| query |  | — | Case-insensitive substring of the matter title: an address or street (406 South Quitman), rezone, zoning, short-term rental. |
| status |  | — | Substring of the status name (Passed, Adopted, Failed, In Committee). |
| body_id | 1 to … | — | Only matters whose current body has this BodyId (see bodies). |

## What can you do with Legistar legislation search in VS Code?

Build a city hall reference page that connects legislative decisions to government bodies, official roles, and meetings. A coding agent can turn Legistar's structured public records into project data and linked views.

### Prepare a public hearing briefing

Identify the responsible body and its office holders, find the proposal and supporting documents, then connect the hearing date to the relevant agenda items.

### Research a zoning proposal

Assemble a briefing that connects a rezoning file, its action history, the reviewing boards, official roles, and the meetings where it was considered.

### Explain a municipal budget decision

Find budget legislation and attachments, identify the council or finance committee and its office holders, and link the proposal's progress to meeting actions.

### Write a weekly city hall digest

Combine legislative developments and meeting records with a short explanation of which government bodies and official roles are involved.

### Reconstruct a proposal's decision timeline

Follow a legislative file through its recorded actions and meeting appearances, with links to the relevant agendas and supporting documents.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All VS Code guides](https://spiral.ai/integrations/vscode)

## Legistar legislation search in other agents

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

## More VS Code guides

- [Legistar legislation details](https://spiral.ai/integrations/vscode/legistar-legislation-details)
- [Legistar meeting agenda](https://spiral.ai/integrations/vscode/legistar-meeting-agenda)
- [Legistar government bodies](https://spiral.ai/integrations/vscode/legistar-government-bodies)
- [Legistar meeting calendar](https://spiral.ai/integrations/vscode/legistar-meeting-calendar)
- [Justice Laws section text](https://spiral.ai/integrations/vscode/justice-laws-section-text)
- [Legistar public office holders](https://spiral.ai/integrations/vscode/legistar-public-office-holders)

## Questions about Legistar legislation search in VS Code

**Can VS Code use Legistar legislation search?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Legistar legislation search like any built-in tool.

**How much does Legistar legislation search cost in VS Code?**

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

**Do I need an Alexandria account to use Legistar legislation search in VS Code?**

No. Spiral runs Legistar legislation search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Legistar legislation search in VS Code?**

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

**Does VS Code wait while Legistar legislation search runs?**

Legistar legislation search runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

**Does Legistar cover every US local government?**

The source covers hundreds of US city and county Legistar portals. Its coverage is tied to those jurisdictional portals, rather than a single nationwide legislative register.

**Can I retrieve unpublished government records?**

Public read responses are limited to records marked public and available through Legistar's InSite website. Internal records outside that publication boundary are excluded.

**How many records can the underlying source return?**

Legistar documents a limit of 1,000 responses per query reply, with pagination for additional results. That is the underlying source's limit.

**What identifies a record's original jurisdiction?**

The provider includes public-record attribution naming the client jurisdiction and the record's original source URL.

**Are a proposal's introduction and passage dates the same thing?**

Legistar stores introduction, agenda, and passage dates separately. A dated legislative record therefore needs to be interpreted according to the particular milestone it describes.

