[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [Alberta Hansard index](https://spiral.ai/integrations/vscode/alberta-hansard-index)

# How to Use Alberta Hansard index in VS Code

Returns the Assembly's debate index headings and, in detailed results, speaker and page references. Use it to locate discussions of a subject before opening the full transcript.

|  |  |
| --- | --- |
| Model | Alberta Hansard index |
| Available through | Alexandria |
| Category | Industry Data |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Alberta Hansard index in VS Code

- Use Alberta Hansard index to locate references under Accessible Alberta Act and add the returned headings and page references to our citation fixture.
- Use Alberta Hansard index to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Alberta Hansard index and tell me what changed since last week.
- Check Alberta Hansard index and summarize what you find in three bullet points.
- Pull the newest data from Alberta Hansard index and give me the result as a table.

## How to set up Alberta Hansard index 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 Alberta Hansard index**: 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": "assembly-ab-ca/legislative-records/hansard_index",
    "input": {
      "docid": 1,
      "index_type": "speaker"
    }
  }'
```

Then paste one of the prompts above: VS Code finds Alberta Hansard index on Spiral, shows the price and runs it.

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

## Alberta Hansard index tools and prices

- [Legislative Assembly of Alberta · Hansard index](https://spiral.ai/tools/alexandria/assembly-ab-ca/legislative-records/hansard_index) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| mode | summary, detailed | detailed | detailed lists every entry with page references; summary lists the headings and sub-headings only. |
| letter |  | A | Initial letter of the headings; "0" is the site's 0-9 group. Pattern: ^[A-Za-z0]$. |
| committee |  |  | Committee code for a committee index (as the site's comm= parameter); empty for the House Hansard index. Pattern: ^[A-Za-z]{0,5}$. |
| heading_contains |  | — | Keep only headings containing this text (case-insensitive). |

## What can you do with Alberta Hansard index in VS Code?

Build an Alberta legislative reference feature with bill histories, elected representatives, and links to original proceedings. A coding agent can organize the returned records in project files and connect citations to the relevant Assembly pages.

### Build a bill passage timeline

Find an Alberta proposal, retrieve its recorded stages, locate related debate references, and collect sitting document links for a dated research timeline.

### Prepare for public accounts research

Collect Public Accounts transcript links, find indexed discussion references, and identify the public roles of MLAs named in the material.

### Assemble a water policy reading pack

Find water-related bills and their sponsors, gather debate references and sitting PDFs, and add relevant committee transcript links. Use official MLA profiles to explain the public roles of the people cited.

### Create a public library issue guide

Prepare a non-commercial guide to an Alberta issue using bill records, debate references, chamber documents, and committee transcript links. Add a directory of relevant elected representatives using the roster and official profiles.

### Teach Alberta's legislative process

Build a classroom exercise around a real bill: identify its sponsor, inspect its stages, locate debate pages, and compare chamber records with committee proceedings. Use the roster and profile to explain representation.

### Maintain a committee reading queue

Collect newly published committee transcript links and indexed references for an Alberta research topic. Keep related chamber sitting documents beside the committee material for comparison.

## Overview

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

## Alberta Hansard index in other agents

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

## More VS Code guides

- [AUC regulatory documents](https://spiral.ai/integrations/vscode/auc-regulatory-documents)
- [Alberta MLA profile](https://spiral.ai/integrations/vscode/alberta-mla-profile)
- [AUC hearing calendar](https://spiral.ai/integrations/vscode/auc-hearing-calendar)
- [Alberta MLA roster](https://spiral.ai/integrations/vscode/alberta-mla-roster)
- [AUC featured projects](https://spiral.ai/integrations/vscode/auc-featured-projects)
- [Alberta bill details](https://spiral.ai/integrations/vscode/alberta-bill-details)

## Questions about Alberta Hansard index in VS Code

**Can VS Code use Alberta Hansard index?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Alberta Hansard index like any built-in tool.

**How much does Alberta Hansard index 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 Alberta Hansard index in VS Code?**

No. Spiral runs Alberta Hansard index on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Alberta Hansard index in VS Code?**

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

**Does VS Code wait while Alberta Hansard index runs?**

Alberta Hansard index runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

**Which jurisdiction do these records cover?**

They cover Alberta's provincial Legislative Assembly and its committees. The Assembly represents 87 constituencies or electoral districts.

**How far back do the Assembly's collections go?**

The Assembly's bill archive extends from 1906 to the current legislature. Alberta Hansard dates to 1972.

**When are final debate transcripts published?**

The Assembly's procedural guide says final afternoon transcripts are available online by 11 p.m. that day. Final transcripts for standing and select special committees are usually posted within two days.

**Is Hansard an exact transcription?**

Alberta Hansard is substantially verbatim and edited under the Assembly's Standing Orders. Editing can correct grammar and remove redundancy.

**Does royal assent mean an Alberta Act is already in force?**

An Act can come into force on proclamation or a specified date. If neither is indicated, it comes into force upon royal assent.

