Save translations an agent wrote
verbaly_write_draftsSave your own translations as drafts checked for params, tags and plural cases, written only for existing source keys and kept for human review before approval.
Instructions
Save translations you wrote yourself, so neither a catalog nor the state file is ever edited by hand. Each one is checked the way verbaly_translate checks a provider (params, rich tags and plural cases must survive), written only for keys the source catalog has, and marked as a draft awaiting human review. Existing translations are kept unless overwrite is set, which is how an outdated one gets rewritten. Approving is not a tool here: a human reads the drafts (verbaly_drafts lists them) and runs verbaly review --approve.
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": {
"locale": "<locale>",
"entries": "<entries>"
},
"name": "verbaly_write_drafts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Project root holding verbaly.config (defaults to the server working directory) | |
| locale | Yes | Target locale, one of the project's non-source locales | |
| entries | Yes | The translations, by catalog key | |
| overwrite | No | Replace translations that already exist, for example outdated ones |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kept | Yes | Already translated, left as they were (overwrite replaces them) | |
| lock | No | This run created verbaly.lock, moved an older state file (from) into it, or rewrote it whole after a merge conflict (merged): it belongs in git with the catalogs, so tell the user to commit it | |
| invalid | Yes | Rejected: empty, or the params, tags or plural cases were not preserved | |
| unknown | Yes | Not in the source catalog, so nothing was written | |
| written | Yes | Saved as drafts, a human still has to approve them |