temporary-storage_add_segment_batch
Stores a new batch in an existing group, e.g. the translation or revised version of another batch. WRITES data: confirm with the user first. Supply the texts in order; positions start at 1. For a long result, store the first portion here and the next portions with append_segment_batch. In note, name the source batch ID and what was done. Returns the new batchId. If the call failed or timed out, call get_segment_group before retrying: the batch may already exist as the newest one.
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": {
"request": "<request>"
},
"name": "temporary-storage_add_segment_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Log of short lines written by the model, one per write, oldest first: what was done, the source batch ID and what is pending. Not verified by the store. | |
| batchId | No | Reusable batch ID, starts with SB-, for get_segment_batch, update_segment_batch and append_segment_batch. | |
| groupId | No | Group this batch belongs to: SG- followed by the same code as in the batch ID, e.g. batch SB-K7M2QX-2 belongs to group SG-K7M2QX. Use it with get_segment_group to see the other batches. | |
| language | No | ||
| sequence | No | Creation order within the group: 1 is the first batch, and the highest sequence is the newest batch. | |
| createdAt | No | ||
| expiresAt | No | Current UTC expiry of the entire group, 6 hours after its last successful write. | |
| updatedAt | No | UTC time of the last change to this batch's texts or note. It does not reflect creation order; use sequence for that. | |
| segmentCount | No |