set_captions
Writes or replaces caption text for dataset files by mapping each file name to its caption, keeping LoRA training datasets accurately labeled.
Instructions
Write captions. captions maps a file name (as shown by get_captions) to its caption text;
existing captions for those files are replaced.
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": {
"dataset": "<dataset>",
"captions": "<captions>"
},
"name": "set_captions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset | Yes | ||
| captions | Yes | ||
| caption_ext | No | txt |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |