turn_off_nanoleaf
Turn off Nanoleaf smart lights using the Nanoleaf MCP Server. This tool provides a simple command to deactivate your lighting setup via Warp terminal or any MCP-compatible client.
Instructions
Turn off the Nanoleaf lights
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/index.ts:73-80 (registration)Tool registration in the ListTools response, defining name, description, and empty input schema{ name: 'turn_off_nanoleaf', description: 'Turn off the Nanoleaf lights', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:322-331 (handler)MCP CallTool handler case that invokes NanoleafClient.turnOff() and returns success messagecase 'turn_off_nanoleaf': await primaryDevice.turnOff(); return { content: [ { type: 'text', text: 'Nanoleaf lights turned off', }, ], };
- src/nanoleaf-client.ts:162-166 (helper)Core implementation of turnOff in NanoleafClient, sends HTTP PUT to /state with on: { value: false }async turnOff(): Promise<void> { await this.httpClient.put(this.getAuthUrl('/state'), { on: { value: false } }); }