game_locale
Get or set the active game locale and translate strings by key during runtime.
Instructions
Set/get locale and translate strings at runtime
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": {
"action": "<action>"
},
"name": "game_locale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Translation key (for translate) | |
| action | Yes | Action: get, set, translate | |
| locale | No | Locale code (e.g. en, es, fr) |