Add words to the user dictionary
add_user_wordsAdd domain words, names, jargon, or brands to the in-memory dictionary so later Chinese segmentation, POS tagging, and keyword extraction keep them whole. Changes reset on restart.
Instructions
Add domain words (names, jargon, brands) so later calls keep them whole.
The dictionary lives in this server process's memory only: it affects every later call to segment, pos_tag and extract_keywords, is shared by all clients of this process, and is gone after a restart. Nothing is written to disk.
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": {
"words": "<words>"
},
"name": "add_user_words"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| words | Yes | Words to add. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| added | Yes | Words added to the in-memory dictionary. | |
| count | Yes |