get_effects
Retrieve available lighting effects for Nanoleaf smart lights to customize illumination patterns and enhance ambiance.
Instructions
Get list of available effects
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:370-379 (handler)MCP server tool handler for the 'get_effects' tool. It calls getEffects() on the NanoleafClient instance and returns the list of effects as JSON text content.case 'get_effects': const effects = await primaryDevice.getEffects(); return { content: [ { type: 'text', text: JSON.stringify(effects, null, 2), }, ], };
- src/nanoleaf-client.ts:196-199 (handler)Core implementation of getEffects method in NanoleafClient class. Fetches the list of available effects from the Nanoleaf device API endpoint '/effects/effectsList'.async getEffects(): Promise<string[]> { const response = await this.httpClient.get(this.getAuthUrl('/effects/effectsList')); return response.data; }
- src/index.ts:133-140 (registration)Registration of the 'get_effects' tool in the MCP server's listTools response, including name, description, and input schema (no parameters required).{ name: 'get_effects', description: 'Get list of available effects', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:133-140 (schema)Input schema for 'get_effects' tool: empty object (no input parameters). Note: output is not explicitly schemed.{ name: 'get_effects', description: 'Get list of available effects', inputSchema: { type: 'object', properties: {}, }, },