How to Use Justice Laws section text in Codex
Returns one section of a Canadian federal act or regulation, currently or for a historical date. Use it to verify an exact quotation or compare a provision's wording across dates.
Prompts to try with Justice Laws section text in Codex
Copy an example into Codex, or ask in your own words.
Use Justice Laws section text to retrieve Criminal Code section 718 and compare its wording with any quotation in this repository.
Use Justice Laws section text to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Justice Laws section text and tell me what changed since last week.
Check Justice Laws section text and summarize what you find in three bullet points.
Pull the newest data from Justice Laws section text and give me the result as a table.
How to set up Justice Laws section text in Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- Sign in
Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.
codex mcp login spiral
Use the Spiral skill
- Send Codex this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Justice Laws section 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": "laws-lois-justice-gc-ca/legislation/get_provision", "input": { "code": "<code>", "section": "<section>" } }'
Then paste one of the prompts above: Codex finds Justice Laws section text on Spiral, shows the price and runs it.
Justice Laws section text providers and prices
Spiral runs Justice Laws section text through Alexandria. Open a card for today's price, with every fee included.
What can you do with Justice Laws section text in Codex?
Build a searchable federal-law reference inside your project using Justice Laws material. A coding agent can organize titles, document contents, retrieved text, and historical records into cited research pages.
Prepare a federal privacy research handbook
Locate the Privacy Act and Privacy Regulations, map their contents, retrieve relevant sections with surrounding text, and compare historical wording for dated examples.
Document access-to-information procedures
Find the Access to Information Act and related regulations, assemble cited passages for a procedures guide, and check which document versions support older guidance.
Review references in a workplace policy
Locate Canada Labour Code references, check quoted provisions against their surrounding sections, and compare the text used when the policy was written with the current consolidation.
Build an environmental legislation briefing
Identify relevant federal legislation for a Fisheries Act research question, organize its headings and regulations, and assemble current and historical passages for a dated briefing.
Watch published legislative changes
Compare retrieved dates, version records, pages, and selected sections for a watchlist of federal laws. Produce a review queue showing which published texts changed.
Compare historical tax wording
Identify Income Tax Act consolidations covering two dates after August 31, 2004, retrieve a selected section for both dates, and prepare a textual comparison.
Check statutory quotations before publication
Locate a cited federal provision, verify its wording, and read neighboring provisions before publishing an article. Check historical versions when the article describes an earlier period.
More on Justice Laws section text and Codex
Overview
Justice Laws section text in other agents
Questions about Justice Laws section text in Codex
Can Codex use Justice Laws section text?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Justice Laws section text like any built-in tool.
How much does Justice Laws section text cost in Codex?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.
Do I need an Alexandria account to use Justice Laws section text in Codex?
No. Spiral runs Justice Laws section 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 Justice Laws section text in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while Justice Laws section text runs?
Justice Laws section text runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.
Does Justice Laws cover provincial legislation?
The consolidated collection covers federal acts and regulations maintained by Canada's Department of Justice. It is not a directory of provincial or territorial legislation.
How current is the legislation?
Consolidations are generally updated every two weeks and typically reflect the law from two to three weeks earlier. The current-to date and last-amended date are separate, so an old amendment date does not by itself mean the consolidation is stale.
How far back can I research the law?
Historical coverage generally starts January 1, 2003 for acts and March 22, 2006 for regulations. The Income Tax Act and Income Tax Regulations have a separate starting date of August 31, 2004.
Is the amendment list a complete history?
No. The displayed amendment list covers amendments effective since January 1, 2019 and is limited to the last 10 amendments, so it should not be treated as the document's entire history.
Are the consolidations official?
Justice Laws consolidations have official status from June 1, 2009 and can be used for evidentiary purposes. That status does not make an agent's summary an official text.
Start using Justice Laws section text in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


