Add phrases to Nightspar
add_phrasesSave 1 to 10 words or short phrases to the user's vocabulary for spaced-repetition learning, in one call. Use when the user wants to remember, learn or save something they came across. Text must be in the target language. Each item may carry the sentence it appeared in (context) and its source URL; collection_id (shared, or per item) also puts it in a collection. Returns one result per item, in order: added, already_saved, rejected (input or limit) or failed (temporary; retry later), with the first meaning and a link.
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": {
"phrases": "<phrases>"
},
"name": "add_phrases"
}
}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. | |
| phrases | Yes | ||
| collection_id | No | Collection id (from list_collections / create_collection) for every item |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes |