get_shop
Retrieve items from a Habitica shop. Choose from market, quest, time travelers, or seasonal shop. Default is market.
Instructions
Get items in a shop (default: market).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shopType | No | market |
Implementation Reference
- index.js:306-319 (registration)Registration of the 'get_shop' tool with its name, description, and input schema defining a shopType enum parameter.
{ name: "get_shop", description: "Get items in a shop (default: market).", inputSchema: { type: "object", properties: { shopType: { type: "string", enum: ["market", "questShop", "timeTravelersShop", "seasonalShop"], default: "market", }, }, }, }, - index.js:449-450 (handler)Handler function that fetches shop items from the API using the shopType parameter, defaulting to 'market'.
get_shop: async ({ shopType = "market" } = {}) => json((await api("GET", `/shops/${shopType}`)).data), - index.js:309-318 (schema)Input schema for the get_shop tool, specifying a single optional 'shopType' string parameter with an enum of valid shop types.
inputSchema: { type: "object", properties: { shopType: { type: "string", enum: ["market", "questShop", "timeTravelersShop", "seasonalShop"], default: "market", }, }, },