webmcp-user-interaction
Installation
SKILL.md
WebMCP User Interaction (Human-in-the-Loop)
Before writing code
Fetch live docs:
- Fetch
https://webmachinelearning.github.io/webmcp/for theModelContextClientandrequestUserInteractionspecification - Web-search
webmcp requestUserInteraction ModelContextClient specificationfor the callback API - Web-search
site:developer.chrome.com webmcp user interaction confirmationfor Chrome implementation guidance - Web-search
webmcp human-in-the-loop agent confirmationfor community patterns
Conceptual Architecture
What requestUserInteraction Does
client.requestUserInteraction(callback) is a method on the ModelContextClient object passed to every tool's execute callback. It pauses tool execution, hands control to the user (via a site-provided UI), and resumes when the user responds.
This is the primary mechanism for human-in-the-loop approval in WebMCP.