hanzi_pinyin
Converts Chinese text to pinyin with word-aware handling of polyphonic characters (重庆 → chóng qìng, 银行 → yín háng). Use it to annotate pronunciation, build pinyin practice exercises, or verify how characters are read.
Instructions
把中文转成拼音,能按词定多音字(重庆 -> chóng qìng,银行 -> yín háng)。用于给汉字标注读音、做注音练习或核对发音。
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": {
"text": "<text>"
},
"name": "hanzi_pinyin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 中文文本 | |
| tone | No | 是否带声调(默认 true,如 hǎo) |