get_global_emotes
Retrieve the list of global emotes available on Twitch for use in chat and content creation.
Instructions
グローバルエモートのリストを取得します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/handlers/chat.ts:4-18 (handler)The main handler function for the 'get_global_emotes' tool. Fetches global emotes using the Twitch API client and formats the response with emote ID, name, and image URLs at 1x, 2x, and 4x scales.export async function handleGetGlobalEmotes(apiClient: ApiClient) { const emotes = await apiClient.chat.getGlobalEmotes(); return formatResponse( emotes.map(emote => ({ id: emote.id, name: emote.name, urls: { url1x: emote.getImageUrl(1), url2x: emote.getImageUrl(2), url4x: emote.getImageUrl(4), }, })) ); }
- src/tools/definitions.ts:124-131 (schema)Tool definition including the schema for 'get_global_emotes', which has no required input parameters.{ name: 'get_global_emotes', description: 'グローバルエモートのリストを取得します', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:125-126 (registration)Registers and dispatches the 'get_global_emotes' tool handler in the MCP CallToolRequestSchema switch statement.case 'get_global_emotes': return await handleGetGlobalEmotes(this.apiClient);
- src/index.ts:77-79 (registration)Registers the tool list including 'get_global_emotes' via toolDefinitions for ListToolsRequestSchema.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: toolDefinitions, }));
- src/index.ts:19-19 (registration)Imports the handler function for 'get_global_emotes'.import { handleGetGlobalEmotes, handleGetGlobalBadges } from './tools/handlers/chat.js';