Save dictionary entry
save_dictionary_entryAdd a dictionary entry, or edit one by entry_id: a word, its locale, its IPA and a category.
Store only an IPA the user chose. Fields you omit on an edit stay as they are; clear erases one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ipa | No | IPA the user picked or typed, stored exactly as given. Never one they did not choose. | |
| type | No | Free-text category, e.g. brand, person, loanword. | |
| word | No | The word as written. Required to add; omit to keep it. | |
| clear | No | Fields to erase on an edit, e.g. ["type"]. | |
| locale | No | BCP-47 locale such as ko-kr. Required to add; omit to keep it. | |
| entry_id | No | An entry_id from list_dictionary_entries to edit. Omit to add a new entry. | |
| description | No | A note about the entry. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ipa | No | ||
| type | No | ||
| word | No | ||
| locale | No | ||
| created | No | ||
| entry_id | No | ||
| next_step | No | ||
| description | No |