Understand a word in its sentence
inspect_mandarin_wordUse this when the learner asks what one Mandarin word or pattern means, how it is said or what it is made of: pass its sentence and the word's offset, or the word alone at offset 0. Returns MTW’s contextual word card with expected pinyin, meaning status, parts and offered alternatives. Count Unicode code points, not UTF-16 units; preserve the original passage. A null card means no applicable Mandarin target. Does not save or grade learning.
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>",
"offset": "<offset>"
},
"name": "inspect_mandarin_word"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The Mandarin passage exactly as the learner gave it, or exactly as you wrote it for them, including punctuation and whitespace; at most 4,096 Unicode code points. Never translate or rewrite a learner's text. | |
| title | No | ||
| offset | Yes | Zero-based Unicode code-point position in the original text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | Yes | ||
| kind | Yes | ||
| text | Yes | ||
| title | Yes | ||
| engine | Yes | ||
| offset | Yes | ||
| persisted | Yes |