A standard HTML form enhanced with WebMCP attributes. An AI agent can discover this form as a callable tool, understand its fields, and pre-fill or submit it on behalf of the user.
Fill out the form below or let an AI agent handle it.
submit_support_ticket. This is how the agent references
the action — like a function name in an API.
name, type,
placeholder, and <label> — which usually works, but
explicit descriptions remove ambiguity.
toolactivated event fires
as fields are pre-filled. If the user cancels, toolcancel fires.
On submit, you can check event.agentInvoked to know whether a human
or an agent triggered it, and use event.respondWith() to return
structured data back to the agent.
<form toolname="submit_support_ticket" tooldescription="Submit a customer support ticket..." action="/api/support/submit" method="POST"> <input type="text" name="full_name" required toolparamdescription="Customer's full name" /> <select name="category" required toolparamdescription="The type of issue: billing, technical..."> <option value="billing">Billing</option> ... </select> <textarea name="description" required toolparamdescription="Detailed description of the problem..." ></textarea> </form>