Use the Lightning Base Components MCP Tools (Beta)
The base components MCP tools help you identify the right base components for your use case, while providing usage guidance and examples.
MCP Tools for LWC is a pilot or beta service that is subject to the Beta Services Terms at Agreements - Salesforce.com or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the Product Terms Directory. Use of this pilot or beta service is at the Customer's sole discretion.
guide_lbc_usage- Provides an index of base components to help identify which components you can useexplore_lbc_components- Provides guidance on base component usage
To use these tools, pass the --toolsets flag as part of the args property of your MCP configuration file and specify lwc-experts. See Use DX MCP Tools for LWC for configuration details.
When working with these tools using Agentforce Vibes Extension, you must enable the a4d-general-rules-no-edit.md and a4d-lwc-rules-no-edit.md global rules. The a4d-general-rules-no-edit.md rule is enabled by default. For more information on configuring rules in Agentforce Vibes, see Agentforce Rules in the Agentforce Vibes Extension Developer Guide.
The guide_lbc_usage tool provides descriptions of available base components. It identifies appropriate candidates and invokes explore_lbc_components to produce usage examples and guidance on how to use the components.
To use this tool, ask about which base components are available for your use case. Example prompts include:
- Are there any base components that help with layout?
- Use a base component to show links for hierarchical navigation
- I want to show records using cards. Is there a base component for that?
The explore_lbc_components tool is invoked by the guide_lbc_usage tool, providing complete guidance on how to use a base component and showing usage examples. It also provides details for properties, events, and slots. You must use the guide_lbc_usage tool first, which identifies which component names to pass to guide_lbc_usage.
Only base components in the Lightning Component Reference are available on this tool. Legacy base components (Aura) aren't supported by this tool. For guidance on API modules like lightning/recordApi, use the explore_lds_uiapi tool or review the API modules documentation instead.