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

VS Code · Public Records

How to Use Gov.br page content in VS Code

Returns the text of a gov.br article or official page, including its dates and attached document links when present. Use it to check an announcement's details beyond the news listing.

Prompts to try with Gov.br page content in VS Code

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

Use Gov.br page content for https://www.gov.br/pt-br/termos-de-uso and add a source-linked summary to our research notes.

Gov.br page contentVS Code
Try asking
  • Use Gov.br page content for https://www.gov.br/pt-br/por-dentro-do-govbr/perguntas-frequentes and document who controls agency publishing in our project's source guide.

  • Use Gov.br page content to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Gov.br page content and tell me what changed since last week.

  • Check Gov.br page content and summarize what you find in three bullet points.

How to set up Gov.br page content 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 Gov.br page content

    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": "gov-br/government-publications/read_page",
        "input": {
          "url": "<url>"
        }
      }'

Then paste one of the prompts above: VS Code finds Gov.br page content on Spiral, shows the price and runs it.

Gov.br page content providers and prices

Spiral runs Gov.br page content through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
gov.br (Brazilian federal government portal) · Read page
gov-br/government-publications/read_page

Settings you can ask for

Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Max chars500 to 200000

Truncate body_text to this many characters (default 20000).

Every API field of gov.br (Brazilian federal government portal) · Read page is on its tool page: open its card above.

What can you do with Gov.br page content in VS Code?

Build a Brazilian government news dashboard with agency links, announcements, and article details. A coding agent can turn the retrieved Gov.br material into a briefing view in your project.

Prepare a tax operations briefing

Identify Receita Federal's portal, collect recent announcements, and read relevant articles to summarize tax deadlines and operational changes for a business team.

Review health regulation announcements

Find Anvisa's portal, scan its news, and read selected announcements to prepare a review queue for a medical products team.

Build a privacy policy reading list

Locate ANPD, gather recent news links, and read relevant pages to assemble a reading list about data protection guidance and consultations.

Follow environmental agency publications

Identify Ibama's portal and review its announcements and article text for an environmental policy briefing.

Research public health communications

Find the Ministry of Health portal, collect relevant announcements, and read the original pages to compare campaign messages and publication dates.

Find government software documentation announcements

Locate Receita Federal, review news about technical documentation, and read the articles to identify the official documentation links they provide.

Questions about Gov.br page content in VS Code

Can VS Code use Gov.br page content?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Gov.br page content like any built-in tool.

How much does Gov.br page content 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 Gov.br page content in VS Code?

No. Spiral runs Gov.br page content on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Gov.br page content in VS Code?

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

Does VS Code wait while Gov.br page content runs?

Gov.br page content runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

Which part of Brazil's government does Gov.br cover?

The institutional portal covers the federal executive administration, including ministries, autonomous agencies, and public foundations. Its founding scope does not establish comprehensive coverage of state governments, municipalities, courts, or Congress.

Who writes and maintains the information?

Each federal agency controls its own content production, editing, and publication. Gov.br centralizes access while the publishing agency remains responsible for the information.

Can a published announcement change later?

Yes. Receita Federal's November 18, 2026, Cash Out announcement shows publication at 07:13 and an update at 08:19, so publication and update times can differ even on the same day.

Does one news page contain the entire archive?

Receita Federal's news archive spans multiple pages, with numbered navigation and links to earlier and later pages. A single listing page therefore covers only part of that agency's archive.

Can I republish Gov.br content?

The government directory displays a CC BY-ND 3.0 license notice. That license requires attribution and a license link and prohibits distributing modified material under its terms; check the notice on the specific content you intend to reuse.

Get started

Start using Gov.br page content 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