lookup_hero
Normalise a hero name/alias/shortName to its canonical identity — or list the whole roster.
Use this to turn messy user input ("am", "anti mage", "Anti-Mage") into the
exact key batru.gg expects before calling the prediction tools. The backend
SILENTLY DROPS hero names it doesn't recognise, so always normalise first.
Not sure which heroes exist? Call it with an EMPTY query to get every hero
of that game (displayName, shortName, aliases).
Args:
query: A hero name, alias, or short name. Empty string = list the full roster.
game: "dota2" (default), "deadlock", or "marvel-rivals".
Returns {id, displayName, shortName, game} for the best match, an error
with `did_you_mean` candidates if nothing matches, or — for an empty
query — {game, count, heroes:[{id, displayName, shortName, aliases}]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | No | "dota2" (default), "deadlock", or "marvel-rivals". | dota2 |
| query | Yes | A hero name, alias or short name as the user typed it. Pass an EMPTY string to list the game's full roster instead. | |
| context | Yes | Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution." |