generate_i18n_plan
Analyzes detected hardcoded user-facing strings and produces a deterministic, reviewable i18n migration plan with translations, source code changes, and required hooks/imports—without modifying files.
Instructions
Analyze detected hardcoded user-facing strings and produce a complete, deterministic, reviewable i18n migration plan (translations, source code changes, and required hooks/imports) with zero filesystem mutations.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_i18n_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Alias for projectPath. | |
| scope | No | Optional scope: file path, directory path, glob pattern, or an array of them to limit planning. | |
| exclude | No | Optional glob patterns to exclude from planning. | |
| include | No | Optional glob patterns to include for planning. | |
| structure | No | Optional i18n structure type override ('namespaces', 'nested', or 'flat'). Auto-detected by default. | |
| projectPath | No | Optional path to the project root directory. Defaults to the current working directory. | |
| sourceLocale | No | Source locale (e.g. 'en'). Defaults to the project's detected source locale. | |
| targetLocales | No | Target locales (e.g. ['fr', 'es']). Defaults to project's detected target locales. | |
| includeAmbiguous | No | Whether to include ambiguous low-confidence candidates in the plan for review. | |
| candidateDecisions | No | Optional map of candidate ID (or text) to boolean decision (true = include as user-facing, false = skip as technical) for resolving ambiguous strings. | |
| confidenceThreshold | No | Minimum confidence score (0.0 to 1.0) below which candidates are marked for REVIEW. |