upload_dataset_text_file
Add a caption text file to a dataset directly from inline text, avoiding the need to host files. Provide dataset ID, a filename matching the media, and the caption body.
Instructions
Add a text file — normally a caption — to a dataset.
Backs ``POST /prod/v1/trainers/datasets/{dataset_id}/upload`` with
inline text, so captions can be written without hosting a file.
Args:
dataset_id: Target dataset.
filename: Must share the base name of the media it captions:
``img_0001.jpg`` → ``img_0001.txt``.
text: Caption body.
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_id": "<dataset_id>",
"filename": "<filename>",
"text": "<text>"
},
"name": "upload_dataset_text_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| filename | Yes | ||
| dataset_id | Yes |