get_public_profile
Retrieve a player's public profile using their Ronin address to access account ID, name, and linked addresses for Axie Infinity.
Instructions
Get a public player profile by Ronin address. Returns the player's account ID, name, and linked addresses.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roninAddress | Yes | The Ronin address in 'ronin:xxxx' or '0x...' format. |
Implementation Reference
- src/index.ts:685-695 (handler)The handler logic that processes the 'get_public_profile' tool call.
case "get_public_profile": { const schema = z.object({ roninAddress: RoninAddress }); const { roninAddress } = schema.parse(args); const normalisedAddress = normaliseAddress(roninAddress); const data = await client.query<{ publicProfileWithRoninAddress: unknown; }>(queries.GET_PUBLIC_PROFILE_BY_ADDRESS, { roninAddress: normalisedAddress, }); return jsonContent(data.publicProfileWithRoninAddress); } - src/index.ts:287-302 (registration)Registration of the 'get_public_profile' tool with its schema definition.
name: "get_public_profile", description: "Get a public player profile by Ronin address. Returns the player's account ID, name, and linked addresses.", inputSchema: { type: "object", properties: { roninAddress: { type: "string", description: "The Ronin address in 'ronin:xxxx' or '0x...' format.", }, }, required: ["roninAddress"], }, }, {