Add an existing phrase to a collection
add_to_collectionAdd a phrase the user already saved (by id from list_phrases) to a collection (by id from list_collections). To save a brand-new phrase, use add_phrases with collection_id instead.
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": {
"phrase_id": "<phrase_id>",
"collection_id": "<collection_id>"
},
"name": "add_to_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| native | No | Native-language code. Defaults to the primary profile. | |
| target | No | Target-language code. Defaults to the primary profile. | |
| phrase_id | Yes | Id of a saved phrase. | |
| collection_id | Yes | Collection id from list_collections / create_collection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| status | Yes | ||
| phraseId | Yes | ||
| collectionId | Yes |