Character name match
character_matchRank character-name candidates by similarity to a query when an exact lookup fails, returning scores and match details so hosts can ask the user instead of guessing.
Instructions
Rank characters by how close their names are to a query.
Use this when a lookup fails because the name is not in the table: the score
and matched_on say whether the candidate is trustworthy, so the host can
ask the user instead of guessing.
Args: query: a name in any form, e.g. "宫紫", "ミヤコ", "miyako". top_k: how many candidates to return, 1-20. threshold: minimum score, 0-1; below it nothing is returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |