get_stats
Retrieve your character's current HP, MP, XP, level, gold, and class from Habitica.
Instructions
Get user stats only (HP, MP, XP, level, gold, class).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:64-68 (registration)Tool definition/registration for 'get_stats' in the tools array. Describes that it returns user stats (HP, MP, XP, level, gold, class) with no input parameters.
{ name: "get_stats", description: "Get user stats only (HP, MP, XP, level, gold, class).", inputSchema: { type: "object", properties: {} }, }, - index.js:373-373 (handler)Handler function for 'get_stats'. Calls the Habitica API GET /user endpoint and extracts the .data?.stats field from the response, returning it as formatted JSON.
get_stats: async () => json((await api("GET", "/user")).data?.stats),