Get dictionary widget code
get_embed_codeGet the HTML code to put a free Dengdeng dictionary widget on a website, for example a teacher's class page or a blog. Widgets: word_card (a word with pinyin, meanings, a sound button and a link to the word's cartoon when it has one), word_of_the_day (a new common word every day) and search_box (a dictionary search form). The code is an iframe plus a plain credit link; tell the user to paste both into an HTML or embed block. Returns the code, the frame URL and size, and the widgets page with instructions for WordPress and Google Sites.
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": {
"widget": "<widget>"
},
"name": "get_embed_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| word | No | The Chinese word for word_card, for example 谢谢. Not used by word_of_the_day and search_box. | |
| widget | Yes | Which widget to embed. |