resource_supplement_add
Declare extra source text for translation, including speaker names or in-code UI hints, so the localization pipeline captures strings missed by the initial scan.
Instructions
声明一条补充条目:这段文本也要翻(说话人名、代码里的界面提示等)
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": {
"source": "<source>",
"target": "<target>"
},
"name": "resource_supplement_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | 谁拍的板:human / user / agent | agent |
| file | No | 出处源码文件(可选,便于核对) | |
| line | No | 出处行号(可选) | |
| reason | No | 为什么补它(人看得懂的一句话) | |
| source | Yes | 原文(运行时被查找的那段文本) | |
| target | Yes | 译文 | |
| project | No | 游戏项目根目录(默认当前目录) | |
| workdir | No | 工作区目录,默认 <项目>/.gametrans |