generate_import
Generates side-effect and named import statements for a web component tag using the library's Custom Elements Manifest.
Instructions
Generates import statements for a component based on the CEM exports and package.json. Returns both a side-effect import and a named import.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tagName": "<tagName>"
},
"name": "generate_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryId | No | Optional library ID to target a specific loaded library instead of the default. | |
| tagName | Yes | The custom element tag name (e.g. "my-button"). |