Create strings
create_stringsAdds new UI strings (up to 200 per call) in the source language, optionally with ready translations, and returns their string_id and normalized string_key. Strings whose key already exists are not duplicated: their existing id is returned. Call it whenever you add user-facing text to the code.
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": {
"strings": "<strings>"
},
"name": "create_strings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | No | Label values for all strings in this call, by label name or id (see get_project → labels), e.g. {"JS Support": "1"}. Labels not given get the project default. | |
| project | No | Project id (from list_projects) or exact project name. Optional when connected with a project API key. | |
| strings | Yes | ||
| category_id | No | Category id. Defaults to the first category. | |
| source_language | No | Language of "text". Defaults to the project source language. |