Translate missing values with AI
translate_missingStarts an AI translation batch to fill missing target values and replace stale machine translations, optionally limited to specified locales or key IDs, while preserving human-edited translations.
Instructions
Start an AI translation batch that fills every MISSING target value and re-translates every STALE machine translation (one whose source text changed since), optionally restricted to given locales and/or numeric key_ids. A stale machine translation is replaced; human-edited and reviewed translations are never overwritten, stale or not. SPENDS the organization AI word quota (fails with quota-exceeded when exhausted) and conflicts with a running batch (active-batch, HTTP 409; the running batch id is in the error). Returns the queued batch immediately; poll get_batch_status with its id until the status is terminal (completed, completed_with_errors, failed, or cancelled). Requires the "manage" ability.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "translate_missing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key_ids | No | Restrict to these numeric key ids (from get_translation row.id); omit for all keys. | |
| locales | No | Restrict to these target locales; omit for all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| total | Yes | ||
| failed | Yes | ||
| status | Yes | ||
| trigger | Yes | ||
| failures | No | ||
| completed | Yes | ||
| started_at | Yes | ||
| finished_at | Yes | ||
| language_breakdown | Yes |