Log interaction
log_interactionAppend a generic interaction event to the answers log. Use for lookups, AI discussions, and reading-in-context signals.
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": {
"type": "<type>",
"word": "<word>"
},
"name": "log_interaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language tag of the word: base ISO with an optional region (en, en-us, pt-br). Scoped on the base, so the variant the session instructions ask you to send always matches. Omit it and the user's own primary learning language is used. | |
| type | Yes | ||
| word | Yes | ||
| metadata | No |