xcstrings_add
Add or update a translation key and localized value in an Xcode string catalog, with optional catalog path and a default empty value.
Instructions
Add or update a translation key/value in the catalog.
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": {
"key": "<key>",
"lang": "<lang>"
},
"name": "xcstrings_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | String key to insert or update | |
| lang | Yes | Target language code | |
| value | No | Localized value. Defaults to empty string | |
| catalogPath | No | Path to Localizable.xcstrings |