Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implements WebMCP in web projects, exposing browser-native structured tools to AI agents via imperative JavaScript or declarative HTML APIs.
52% 87%+35 ptsof test cases passed
Passed 20 of 23 test cases with the skill, and 12 of 23 without it.
3 of 3 safety checks passed
Not used yet
<essential_principles>
WebMCP is a browser-native standard that exposes structured tools for AI agents on websites. Instead of screen-scraping, agents interact through typed JavaScript APIs and HTML annotations.
Two APIs:
window.navigator.modelContext — register tools via JavaScripttoolname/tooldescription attributes on <form> elementsPrerequisites: Chrome 146.0.7672.0+, chrome://flags/#enable-webmcp-testing enabled.
Core principles that always apply:
Tools must be atomic and composable — one function per tool, no overlapping tools with nuanced differences. Combine similar tools into one with input parameters.
Accept raw user input — tools should accept natural strings (e.g., "11:00") not computed values (e.g., minutes-from-midnight). Minimize cognitive computing for the model.
Validate in code, not schema — schema constraints are helpful but not guaranteed. Validate within execute functions and return descriptive errors so agents can self-correct.
Update UI before returning — agents use UI state to verify execution. Ensure execute/submit logic updates visible state before resolving.
Positive, verb-first descriptions — describe what the tool does and when to use it. Avoid negations. "Creates a calendar event for a specific date" not "Do not use for weather."
</essential_principles>
Wait for response before proceeding.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.