add_setting
Adds a new setting to Lampa's settings panel by generating the required boilerplate code for toggles, selects, or inputs, using a specified storage key, label, type, and optional default value or options.
Instructions
Generate the boilerplate to add a new setting to Lampa's settings panel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Storage key for the setting, e.g. 'my_plugin_enabled'. | |
| label | Yes | Human-readable label shown in the UI. | |
| type | Yes | Setting type. | |
| default_value | No | Default value. | |
| options | No | Options for 'select' type. |