Skip to main content
Glama

check_event_usage

Validate event usage in web component code by checking against the Custom Elements Manifest. Detects React onXxx props, misspelled events, and framework-specific binding mistakes for React, Vue, and Angular.

Instructions

Validates event listener patterns against a component CEM — catches React onXxx props for custom events (won't work), unknown event names, misspelled events, and framework-specific binding mistakes. Supports React, Vue, and Angular patterns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
libraryIdNoOptional library ID to target a specific loaded library instead of the default.
codeTextYesThe code (JSX, template, etc.) to validate event usage in.
tagNameYesThe custom element tag name to validate against (e.g. "sl-button").
frameworkNoOptional framework hint. Enables framework-specific checks (e.g. React onXxx prop detection).

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bookedsolidtech/helixir'

If you have feedback or need assistance with the MCP directory API, please join our Discord server