Download a language file
wti_download_fileDownload a locale-specific language file (strings.xml, en.json, Localizable.strings) from WebTranslateIt as wti pull does, returning content or writing it to a local path.
Instructions
Download a language file (e.g. strings.xml, en.json, Localizable.strings) for one locale, as WebTranslateIt would export it, like wti pull does for one file. Returns the content, or writes it to save_to.
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": {
"file_id": "<file_id>",
"locale": "<locale>"
},
"name": "wti_download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | Yes | Locale code as used in the project, e.g. `de`, `fr-BE`, `pt-PT`. | |
| file_id | Yes | Master file id from wti_get_project (master_files[].master_file_id). | |
| save_to | No | Write the file to this local path instead of returning it (relative to the server's working directory). | |
| max_chars | No | When returning the content, cut it after this many characters (default 30000). |