• KEYS
  • VALID
  • DATA
  • HUMAN

How to extract ICU template variables with your agent

Connect the ICU MessageFormat Validator to your agent. It handles the heavy lifting of parsing complex strings to find the exact keys you need.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I pull variable names from ICU strings using AI?

Your agent uses the extraction tool to scan your ICU messages and identify each unique placeholder. You get a precise list of variable names ready for your localization workflow.

The results you get

What the extraction produces

Your agent processes your strings and organizes the results into these outcomes.

KEYS

Unique variable list

Your agent identifies each placeholder in the string. You receive a clean list of names to use in your code or translation files.

VALID

Syntax check

The tool confirms the ICU format is correct. You'll know immediately if a bracket is missing or a brace is misplaced.

DATA

Variable counts

Your agent counts how many times each variable appears. This helps you map out the data requirements for your UI.

HUMAN

Manual review

You check the final list against your actual data objects. Your agent provides the names, but you ensure they match your application logic.

The workflow

What your agent does when the string arrives.

Your agent takes your raw text and runs it through a specific parsing sequence.

  1. Scan the string

    Your agent reads the ICU message you provide to locate all curly brace patterns.

    extract_template_variables
  2. Isolate keys

    It strips away the surrounding text and logic to pull out the variable names.

    extract_template_variables
  3. Deduplicate names

    Your agent removes any repeating variables so you only see the unique set required.

    extract_template_variables
  4. Format output

    Your agent presents the final list in a way that's easy to copy into a JSON or properties file.

    extract_template_variables

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute ICU MessageFormat Validator tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to trigger the extraction immediately.

Starting points

Swap the bracketed text for your actual ICU strings or file paths.

ICU MessageFormat Validator Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_IaQlGvSL4zMDdiFv0D4FuL8L3jDEnXfQZ1I61OIc/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, ICU MessageFormat Validator capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "icu-messageformat-validator-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_IaQlGvSL4zMDdiFv0D4FuL8L3jDEnXfQZ1I61OIc/mcp"
    }
  }
}
Copy into chat04
  • 01

    Extract all unique variable names from this ICU string: '{userName}, you have {count, plural, =0 {no messages} =1 {one message} other {# messages}}'

  • 02

    Look at the ICU messages in my 'locales/en.json' file and list the variables.

  • 03

    Find the template variables in this string and tell me how many unique ones there are: 'Hello {user}, welcome to {app_name}!'

  • 04

    Check this ICU string for syntax errors and give me a list of the variables used: '{status, select, active {Active} inactive {Inactive} other {Unknown}}'

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect ICU MessageFormat Validator once, then ask.

One click connects the MCP to your client. Your credentials stay encrypted, and you can start parsing strings right away.

Connect ICU MessageFormat Validator to your agent

FAQ

How this task behaves.

  • 01

    Can your agent fix my broken ICU strings?

    No. The tool identifies syntax errors, but you must manually correct the string to fix the issue.

  • 02

    Will it automatically update my translation files?

    No. Your agent extracts the names and identifies errors, but it does not write to your local files or repositories.

  • 03

    Does it handle pluralization logic?

    Yes. The extraction tool identifies variables even when they are nested inside plural or select blocks.

  • 04

    Can I extract variables from a whole folder of files?

    Yes, if you provide the file paths or the content of the files to your agent.

  • 05

    Does your agent remember my variable names for next time?

    Your agent only knows what is in your current chat context. It does not store a permanent database of your variables.

  • More questions about ICU MessageFormat Validator? The Connector page answers them. See everything the ICU MessageFormat Validator Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from ICU MessageFormat Validator to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    ICU MessageFormat Validator plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect ICU MessageFormat Validator to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.