tell_themed_story
Generate themed stories using only emojis for adventure, romance, horror, space, food, or party narratives.
Instructions
Tells a themed emoji story. Choose your adventure! πΊοΈβ¨
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | Yes | Story theme: 'adventure', 'romance', 'horror', 'space', 'food', or 'party' |
Implementation Reference
- index.js:158-162 (handler)Handler logic for tell_themed_story tool: extracts theme from input, generates story using generateThemedStory, and returns formatted output.if (toolName === "tell_themed_story") { const theme = toolInput.theme || "random"; const story = generateThemedStory(theme); return `π ${theme.toUpperCase()} STORY π\n\n${story}`; }
- index.js:125-136 (schema)Input schema for tell_themed_story, defining the required 'theme' string parameter with allowed enum values.inputSchema: { type: "object", properties: { theme: { type: "string", description: "Story theme: 'adventure', 'romance', 'horror', 'space', 'food', or 'party'", enum: ["adventure", "romance", "horror", "space", "food", "party"], }, }, required: ["theme"], },
- index.js:121-137 (registration)Registration of the tell_themed_story tool in the TOOLS array, including name, description, and input schema.{ name: "tell_themed_story", description: "Tells a themed emoji story. Choose your adventure! πΊοΈβ¨", inputSchema: { type: "object", properties: { theme: { type: "string", description: "Story theme: 'adventure', 'romance', 'horror', 'space', 'food', or 'party'", enum: ["adventure", "romance", "horror", "space", "food", "party"], }, }, required: ["theme"], }, },
- index.js:76-101 (helper)Helper function that generates predefined emoji stories for specific themes or falls back to random chaos.function generateThemedStory(theme) { const themeMap = { adventure: () => { return `πΊοΈ π§ ποΈ\nβ‘ π πͺ\nπ π β¨\nπ π₯³ π`; }, romance: () => { return `π π π\nπΉ π π«\nπ π₯Ί π’\nπππ`; }, horror: () => { return `ποΈ π» π±\nπͺ π β οΈ\nπ² π π¨\nπ π΅ π₯`; }, space: () => { return `π π π½\nπͺ β π \nπΈ π π«\nπ π₯ π`; }, food: () => { return `π π π\nπ π€€ π\nπ½οΈ π₯ π¨\nπ π± π`; }, party: () => { return `π π π₯³\nπ πΊ π΅\nπΎ π» πͺ\nπ΅ π« β¨`; }, }; return themeMap[theme] ? themeMap[theme]() : `Random chaos incoming...\n${generateEmojiStory("random", 7)}`; }