load_library
Load a web component library into memory by libraryId. Supports local CEM file or npm package from CDN for subsequent tool targeting.
Instructions
Load an additional web component library into memory by libraryId. Provide either a local cemPath or a packageName (+ optional version) to fetch from CDN. Once loaded, all CEM-dependent tools can target this library using the libraryId parameter.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryId | Yes | Unique identifier for this library (e.g. "shoelace", "spectrum"). Used to reference it in subsequent tool calls. | |
| cemPath | No | Local file path to the custom-elements.json file. Relative paths are resolved from projectRoot. | |
| packageName | No | npm package name to fetch CEM from CDN (e.g. "@shoelace-style/shoelace"). Used when cemPath is not provided. | |
| version | No | Package version for CDN fetch (default: "latest"). | |
| registry | No | CDN registry for package fetch (default: "jsdelivr"). |