localize
Translate source text into target locales and run linting plus glossary checks on results; if no compatible provider is configured, return structured translation jobs instead of fabricated output.
Instructions
Translate source text into one or more locales and post-process (lint + glossary). With an OpenAI-compatible provider configured it returns real translations; otherwise it returns structured translation jobs (it never fabricates output).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>",
"locales": "<locales>"
},
"name": "localize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Source text (can be multiple lines). | |
| locales | Yes | Target locales, e.g. ['de-DE','ja-JP']. | |
| glossary | No | Optional glossary for post-check. | |
| maxLength | No | Optional UI character budget. |