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

VS Code · Public Records

How to Use Canada Gazette document in VS Code

Fetch the text of a Canada Gazette notice, proposed regulation, or registered instrument. Use it to read the provisions and explanatory material behind a title found in an issue or consultation list.

Prompts to try with Canada Gazette document in VS Code

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

Use Canada Gazette document to read SOR/2026-232 and draft a short description for this project's Canadian payments research index.

Canada Gazette documentVS Code
Try asking
  • Use Canada Gazette document to read https://gazette.gc.ca/rp-pr/p1/2026/2026-10-24/html/reg1-eng.html and create a cited outline of the proposed Stablecoin Regulations in this project's notes.

  • Use Canada Gazette document to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Canada Gazette document and tell me what changed since last week.

  • Check Canada Gazette document and summarize what you find in three bullet points.

How to set up Canada Gazette document 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 Canada Gazette document

    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": "gazette-gc-ca/legislation/get_document",
        "input": {
          "registration": "<registration>"
        }
      }'

Then paste one of the prompts above: VS Code finds Canada Gazette document on Spiral, shows the price and runs it.

Canada Gazette document providers and prices

Spiral runs Canada Gazette document through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
Canada Gazette · Get document
gazette-gc-ca/legislation/get_document

Settings you can ask for

Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Max text chars0 to 200000

Cap on the returned text (default 20000). 0 returns metadata only.

Every API field of Canada Gazette · Get document is on its tool page: open its card above.

What can you do with Canada Gazette document in VS Code?

Build a searchable index of Canadian federal proposals and published instruments in your project. A coding agent can organize Gazette references by issue date and registration number, then attach document summaries for review.

Prepare a federal regulatory briefing

Locate recent editions, review their contents, identify related consultations, and read the selected documents. Build a briefing that separates proposed changes from enacted instruments.

Research a consultation response

Find a proposal in the consultation list, locate its publication issue, and read its proposed wording. Prepare questions and a response outline with links to the relevant Gazette documents.

Build a sector reading list

Collect Gazette publications and consultations concerning Canadian aviation, banking, energy, or another defined sector. Review issue contents and document text to explain why each selection belongs.

Assemble a proposal publication history

Start with an open or closed consultation, identify the original issue, and read the proposal. Search subsequent editions for related instruments and document the connections supported by their text.

Index registered instruments

Locate Part II editions and collect their instrument titles, enabling statutes, registration numbers, and dates. Read selected documents to add a short description to a research index.

Questions about Canada Gazette document in VS Code

Can VS Code use Canada Gazette document?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Canada Gazette document like any built-in tool.

How much does Canada Gazette document 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 Canada Gazette document in VS Code?

No. Spiral runs Canada Gazette document on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Canada Gazette document in VS Code?

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

Does VS Code wait while Canada Gazette document runs?

Canada Gazette document runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

What is the difference between Part I and Part II?

Part I publishes federal notices, appointments, and proposed regulations. Part II publishes enacted regulations and other statutory instruments, including orders and proclamations.

When does new Gazette material appear?

Regular Part I editions become available on Fridays at 2 pm Eastern time with a Saturday publication date. Regular Part II editions appear every second Wednesday at 9 am Eastern time.

How far back can I research Gazette publications?

The Gazette website lists publications from 1998 onward and directs readers to Library and Archives Canada for 1841 through 1997. Its stated HTML availability is the last five years, with older editions available only as PDFs.

Is the HTML text the official edition?

The Gazette labels HTML editions unofficial. The official edition is the bilingual PDF, so use that edition when checking the published wording.

What can a Part II issue index tell me?

It lists regulations, the associated statutes, registration numbers, dates, and comments. That makes it useful for locating a particular instrument before reading its text.

Get started

Start using Canada Gazette document 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