Generate Lampa plugin, setting, or hook text
scaffold_pluginGenerate copy-paste Lampa plugin scaffolds as markdown: full main.js, SettingsApi snippets, or matching Listener/Player hooks. Provide required inputs to get a complete starting point.
Instructions
Returns markdown only; does not write the repository — not a patch against existing files (draft_patch).
kind=plugin emits a full main.js scaffold: requires plugin_name + description; plugin_kind (screen default | player | context-menu | settings-only) applies only here.
kind=setting emits a SettingsApi registration snippet: requires key + label + type (type=toggle aliases trigger).
kind=hook emits the best-matching Listener/Player hook: requires trigger.
A missing required combo for the chosen kind errors instead of returning a partial scaffold. Follow up with validate_code mode=plugin on the result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | For kind=setting: Storage key, e.g. 'myplugin_enabled'. Prefix with plugin name. | |
| kind | Yes | plugin=full main.js scaffold; setting=SettingsApi snippet; hook=Listener catalog. | |
| type | No | For kind=setting: param type. toggle aliases trigger. | |
| label | No | For kind=setting: human-readable UI label. | |
| options | No | For kind=setting type=select: option ids. | |
| trigger | No | For kind=hook: event or lifecycle moment, e.g. 'player start', 'app ready', 'card full'. | |
| component | No | For kind=setting: Settings section id. Defaults to key prefix before '_'. | |
| description | No | For kind=plugin: one-sentence description of what the plugin does. | |
| plugin_kind | No | For kind=plugin: screen (default) | player | context-menu | settings-only. | |
| plugin_name | No | For kind=plugin: snake_case folder/id, e.g. 'my_feature'. | |
| default_value | No | For kind=setting: default value. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | Yes | Human-readable markdown report. Always present, including empty-result cases. Does not write files. |