daily_card
Draw one tarot card each day to receive straightforward guidance and focus for your day.
Instructions
Draw a single card for daily guidance
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/tarot-tools.ts:164-167 (handler)The `getDailyCard()` method in TarotTools class - draws a single card by calling `this.drawCards(1)` and returns the first card. This is the core handler/logic for the daily_card tool.
getDailyCard(): DrawCard { const cards = this.drawCards(1); return cards[0]; } - src/types/tarot.ts:24-28 (schema)The `DrawCard` interface defines the return type of getDailyCard() - it contains a `TarotCard`, `position`, and `isReversed` flag.
export interface DrawCard { card: TarotCard; position: string; isReversed: boolean; } - src/index.ts:112-119 (registration)The tool registration in the TOOLS array - defines name 'daily_card', description 'Draw a single card for daily guidance', and empty inputSchema (no params required).
{ name: 'daily_card', description: 'Draw a single card for daily guidance', inputSchema: { type: 'object', properties: {}, }, }, - src/index.ts:265-275 (handler)The request handler case for 'daily_card' - calls `tarotTools.getDailyCard()` and returns the card serialized as JSON text.
case 'daily_card': { const card = tarotTools.getDailyCard(); return { content: [ { type: 'text', text: JSON.stringify(card, null, 2), }, ], }; }