get_composition_example
Generates an HTML snippet that composes multiple web components using slot assignments from their Custom Elements Manifest. Provide 1-4 component tag names to get a realistic composition example.
Instructions
Generates a realistic HTML snippet showing how to compose two or more web components together. Slot assignments are drawn from CEM slot definitions. Provide 1–4 component tag names; a single tag name returns a standalone usage example.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryId | No | Optional library ID to target a specific loaded library instead of the default. | |
| tagNames | Yes | Array of 1–4 custom element tag names to compose (e.g. ["my-card", "my-button"]). |