Generate LWC from Requirements
sf_create_lwc_from_requirementsGenerates a complete LWC component scaffold (HTML, JS, CSS, XML) from plain-English requirements, returning code for review before deployment.
Instructions
Generates a complete LWC component scaffold (HTML template, JS controller, CSS, and meta XML) from a plain-English requirements description. Returns the generated code for review before deploying with sf_create_lwc.
componentName: LWC component name in camelCase requirements: plain-English description of what the component should do includeWireAdapters: include @wire adapter examples for data fetching targetObject: optional Salesforce object to bind to
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requirements | Yes | Plain-English description of what the component should do | |
| targetObject | No | Salesforce object to bind to, e.g. 'Account' | |
| componentName | Yes | LWC component name in camelCase, e.g. 'accountTile' | |
| includeWireAdapters | No | Include wire adapter examples in the component |