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

VS Code · Public Records

How to Use Alberta legislation text in VS Code

Returns an Alberta act or regulation with section text, amendment history, and consolidation information. Use it to examine the wording behind a catalogue result and identify the version you are reading.

Prompts to try with Alberta legislation text in VS Code

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

Use Alberta legislation text to retrieve section 25 of the Employment Standards Code and compare its wording with the holiday references in this project's documentation.

Alberta legislation textVS Code
Try asking
  • Use Alberta legislation text to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Alberta legislation text and tell me what changed since last week.

  • Check Alberta legislation text and summarize what you find in three bullet points.

  • Pull the newest data from Alberta legislation text and give me the result as a table.

How to set up Alberta legislation text 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:

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Alberta legislation text

    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": "kings-printer-alberta-ca/legislation/get_legislation",
        "input": {
          "isbn": "<isbn>"
        }
      }'

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

Alberta legislation text providers and prices

Spiral runs Alberta legislation text through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
Alberta King's Printer · Get legislation
kings-printer-alberta-ca/legislation/get_legislation

What can you do with Alberta legislation text in VS Code?

Build a legislation reference inventory for an Alberta policy or rules project. A coding agent can match citations in project files to catalogue records and organize relevant provisions and Gazette publications for review.

Employment policy research

Find the Employment Standards Code and its regulation, read relevant provisions, then locate and examine Gazette publications for changes that need review before updating an employer handbook.

Municipal policy review

Build a reading list around the Municipal Government Act, examine its wording, and check Gazette issues for relevant regulations and published notices.

Commercial transport rule review

Locate commercial vehicle legislation, read consolidated provisions, and inspect Gazette amendment instruments for wording that deserves an operations team's attention.

Health regulation research

Identify legislation under the Health Professions Act, examine relevant provisions, and check Gazette publications for new or amending regulations affecting organizational policies.

Legislation citation inventory

Match titles cited in a policy manual to catalogue citations and readable legislation, then organize the relevant sections and amendment references for review.

Section reference collection

Locate the acts and regulations behind an Alberta research question and assemble a section reading list with source links and consolidation information.

Questions about Alberta legislation text in VS Code

Can VS Code use Alberta legislation text?

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

How much does Alberta legislation text 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 legislation text in VS Code?

No. Spiral runs Alberta legislation text 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 legislation text in VS Code?

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

Does VS Code wait while Alberta legislation text runs?

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

How often does the Alberta Gazette publish?

The Gazette publishes twice per month in two parts. A daily check can find newly posted issues, but the publication schedule is twice monthly.

Which Gazette part should I read?

Part 1 carries proclamations, Orders in Council, and government notices. Part 2 carries new regulations and amendments filed with the Registrar of Regulations.

How far back does the public Gazette archive go?

The public archive starts in 1995. Alberta directs readers seeking earlier issues to request them or consult KP Source Professional.

Does the electronic Gazette include everything in print?

It may omit maps, charts, and graphs contained in the printed edition. That boundary matters when a regulation refers to a mapped area or graphical schedule.

What distinguishes a legislation result from a Gazette result?

Legislation text provides consolidated acts or regulations with section amendment history and consolidation dates. Gazette Part 2 publishes the new regulations and amendment instruments as filed.

Get started

Start using Alberta legislation text in VS Code

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

Paste this into VS Code:

Set up VS Code

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