get_effects
Retrieve a list of available lighting effects from the Nanoleaf MCP Server to manage and customize smart light displays.
Instructions
Get list of available effects
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/index.ts:370-379 (handler)Handler for the 'get_effects' tool: calls primaryDevice.getEffects() and returns the list of effects as JSON text.case 'get_effects': const effects = await primaryDevice.getEffects(); return { content: [ { type: 'text', text: JSON.stringify(effects, null, 2), }, ], };
- src/index.ts:133-140 (registration)Registration of the 'get_effects' tool in the tools list, with description and input schema.{ name: 'get_effects', description: 'Get list of available effects', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:136-139 (schema)Input schema for 'get_effects' tool: empty object (no parameters).inputSchema: { type: 'object', properties: {}, },
- src/nanoleaf-client.ts:196-199 (helper)Helper method getEffects() in NanoleafClient class that fetches the list of effects from the device API endpoint '/effects/effectsList'.async getEffects(): Promise<string[]> { const response = await this.httpClient.get(this.getAuthUrl('/effects/effectsList')); return response.data; }