[{"data":1,"prerenderedAt":1093},["ShallowReactive",2],{"i-simple-icons:github":3,"i-lucide:arrow-right":8,"doc-\u002Fdocs\u002Fwebmcp":10,"docs-sidebar":960,"i-lucide:file-text":1089,"i-lucide:arrow-left":1091},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":7},0,24,false,"\u003Cpath fill=\"currentColor\" d=\"M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12\"\u002F>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":9},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M5 12h14m-7-7l7 7l-7 7\"\u002F>",{"id":11,"title":12,"body":13,"description":951,"extension":952,"group":953,"groupOrder":58,"meta":954,"navTitle":12,"navigation":955,"order":495,"path":956,"seo":957,"stem":958,"__hash__":959},"docs\u002Fdocs\u002Fwebmcp.md","WebMCP exposure",{"type":14,"value":15,"toc":939},"minimark",[16,20,37,45,112,120,124,127,235,246,250,268,355,425,456,460,530,558,604,618,638,642,665,668,702,706,734,768,775,779,830,834,876,902,906,935],[17,18,12],"h1",{"id":19},"webmcp-exposure",[21,22,23,24,28,29,36],"p",{},"WebMCP is an imperative browser API — ",[25,26,27],"code",{},"document.modelContext.registerTool(...)"," — that lets a page offer tools to an AI agent running in or alongside the browser. It is being specified in the ",[30,31,35],"a",{"href":32,"rel":33},"https:\u002F\u002Fgithub.com\u002Fwebmachinelearning\u002Fwebmcp",[34],"nofollow","W3C Web Machine Learning Community Group",". webmcpui controls can register themselves as tools.",[38,39,41,42],"h2",{"id":40},"opt-in-with-expose","Opt in with ",[25,43,44],{},"expose",[46,47,52],"pre",{"className":48,"code":49,"language":50,"meta":51,"style":51},"language-html shiki shiki-themes github-light-default ayu-dark","\u003Cwmcp-input label=\"Email\" name=\"email\" type=\"email\" expose>\u003C\u002Fwmcp-input>\n\u003C!-- registers a \"fill-email\" tool an agent can call -->\n","html","",[25,53,54,105],{"__ignoreMap":51},[55,56,59,63,67,71,75,79,82,84,87,90,92,94,97,100,102],"span",{"class":57,"line":58},"line",1,[55,60,62],{"class":61},"sqV5G","\u003C",[55,64,66],{"class":65},"sfBZl","wmcp-input",[55,68,70],{"class":69},"sI192"," label",[55,72,74],{"class":73},"siQKT","=",[55,76,78],{"class":77},"sxLuP","\"Email\"",[55,80,81],{"class":69}," name",[55,83,74],{"class":73},[55,85,86],{"class":77},"\"email\"",[55,88,89],{"class":69}," type",[55,91,74],{"class":73},[55,93,86],{"class":77},[55,95,96],{"class":69}," expose",[55,98,99],{"class":61},">\u003C\u002F",[55,101,66],{"class":65},[55,103,104],{"class":61},">\n",[55,106,108],{"class":57,"line":107},2,[55,109,111],{"class":110},"s5O_a","\u003C!-- registers a \"fill-email\" tool an agent can call -->\n",[21,113,114,115,119],{},"On connect, the element registers an imperative WebMCP tool; on disconnect, it unregisters. It is ",[116,117,118],"strong",{},"feature-detected"," — a complete no-op when no agent\u002Fhost is present (the common case today), so the control is always a good form control first.",[38,121,123],{"id":122},"the-generated-tool","The generated tool",[21,125,126],{},"For the example above, the registered tool is:",[128,129,130,143],"table",{},[131,132,133],"thead",{},[134,135,136,140],"tr",{},[137,138,139],"th",{},"Field",[137,141,142],{},"Value",[144,145,146,167,184,196,208,218],"tbody",{},[134,147,148,154],{},[149,150,151],"td",{},[25,152,153],{},"name",[149,155,156,159,160,163,164,166],{},[25,157,158],{},"fill-email"," (",[25,161,162],{},"fill_"," + the ",[25,165,153],{}," attribute)",[134,168,169,174],{},[149,170,171],{},[25,172,173],{},"title",[149,175,176,179,180,183],{},[25,177,178],{},"Email"," (the ",[25,181,182],{},"label",", for the agent's native UI)",[134,185,186,191],{},[149,187,188],{},[25,189,190],{},"description",[149,192,193],{},[25,194,195],{},"Set the value of the \"Email\" field.",[134,197,198,203],{},[149,199,200],{},[25,201,202],{},"inputSchema",[149,204,205],{},[25,206,207],{},"{ type: 'object', properties: { value: { type: 'string' } }, required: ['value'] }",[134,209,210,215],{},[149,211,212],{},[25,213,214],{},"outputSchema",[149,216,217],{},"the result shape below",[134,219,220,225],{},[149,221,222],{},[25,223,224],{},"annotations",[149,226,227,230,231,234],{},[25,228,229],{},"{ consequentialHint: true }"," only when the ",[25,232,233],{},"consequential"," attribute is set",[21,236,237,238,241,242,245],{},"When the agent calls the tool, the element applies the value exactly as if a user typed it — updating state, running validation, announcing errors, and firing ",[25,239,240],{},"input","\u002F",[25,243,244],{},"change"," events.",[38,247,249],{"id":248},"tool-results","Tool results",[21,251,252,253,256,257,259,260,263,264,267],{},"WebMCP has no result envelope of its own: ",[25,254,255],{},"execute"," returns any JSON-serializable value, the host stringifies it for the agent, and ",[25,258,214],{}," says what to expect. Every webmcpui tool returns a plain object with ",[25,261,262],{},"ok",", one human-readable ",[25,265,266],{},"message",", and element-specific detail:",[46,269,273],{"className":270,"code":271,"language":272,"meta":51,"style":51},"language-json shiki shiki-themes github-light-default ayu-dark","{ \"ok\": true, \"message\": \"Set \\\"Email\\\" to \\\"ada@example.com\\\".\", \"field\": \"Email\", \"value\": \"ada@example.com\", \"valid\": true }\n","json",[25,274,275],{"__ignoreMap":51},[55,276,277,281,284,287,291,294,297,299,302,306,308,310,313,315,318,320,323,325,328,330,333,335,338,340,343,345,348,350,352],{"class":57,"line":58},[55,278,280],{"class":279},"sBz_o","{ ",[55,282,283],{"class":65},"\"ok\"",[55,285,286],{"class":73},":",[55,288,290],{"class":289},"sQY3k"," true",[55,292,293],{"class":73},",",[55,295,296],{"class":65}," \"message\"",[55,298,286],{"class":73},[55,300,301],{"class":77}," \"Set ",[55,303,305],{"class":304},"sXtjN","\\\"",[55,307,178],{"class":77},[55,309,305],{"class":304},[55,311,312],{"class":77}," to ",[55,314,305],{"class":304},[55,316,317],{"class":77},"ada@example.com",[55,319,305],{"class":304},[55,321,322],{"class":77},".\"",[55,324,293],{"class":73},[55,326,327],{"class":65}," \"field\"",[55,329,286],{"class":73},[55,331,332],{"class":77}," \"Email\"",[55,334,293],{"class":73},[55,336,337],{"class":65}," \"value\"",[55,339,286],{"class":73},[55,341,342],{"class":77}," \"ada@example.com\"",[55,344,293],{"class":73},[55,346,347],{"class":65}," \"valid\"",[55,349,286],{"class":73},[55,351,290],{"class":289},[55,353,354],{"class":279}," }\n",[46,356,358],{"className":270,"code":357,"language":272,"meta":51,"style":51},"{ \"ok\": false, \"message\": \"Set \\\"Email\\\" but validation failed: Enter a valid email\", \"error\": \"Enter a valid email\", \"field\": \"Email\", \"value\": \"nope\", \"valid\": false }\n",[25,359,360],{"__ignoreMap":51},[55,361,362,364,366,368,371,373,375,377,379,381,383,385,388,390,393,395,398,400,402,404,406,408,410,412,415,417,419,421,423],{"class":57,"line":58},[55,363,280],{"class":279},[55,365,283],{"class":65},[55,367,286],{"class":73},[55,369,370],{"class":289}," false",[55,372,293],{"class":73},[55,374,296],{"class":65},[55,376,286],{"class":73},[55,378,301],{"class":77},[55,380,305],{"class":304},[55,382,178],{"class":77},[55,384,305],{"class":304},[55,386,387],{"class":77}," but validation failed: Enter a valid email\"",[55,389,293],{"class":73},[55,391,392],{"class":65}," \"error\"",[55,394,286],{"class":73},[55,396,397],{"class":77}," \"Enter a valid email\"",[55,399,293],{"class":73},[55,401,327],{"class":65},[55,403,286],{"class":73},[55,405,332],{"class":77},[55,407,293],{"class":73},[55,409,337],{"class":65},[55,411,286],{"class":73},[55,413,414],{"class":77}," \"nope\"",[55,416,293],{"class":73},[55,418,347],{"class":65},[55,420,286],{"class":73},[55,422,370],{"class":289},[55,424,354],{"class":279},[21,426,427,428,431,432,434,435,438,439,443,444,447,448,451,452,455],{},"Anything the agent should reason about — a validation failure, a disabled control, a form that did not submit — comes back as a value with ",[25,429,430],{},"ok: false",", never as a thrown error. That is deliberate: a rejected ",[25,433,255],{}," reaches the agent only as a bare ",[25,436,437],{},"OperationError"," with the message dropped, so refusing ",[440,441,442],"em",{},"in the result"," is the only way to tell it why. The same helpers are exported for your own tools: ",[25,445,446],{},"toolOk(message, detail)",", ",[25,449,450],{},"toolFailed(message, detail)",", and ",[25,453,454],{},"toolResultSchema(detail)",".",[38,457,459],{"id":458},"customizing-the-tool","Customizing the tool",[46,461,463],{"className":48,"code":462,"language":50,"meta":51,"style":51},"\u003Cwmcp-input\n  name=\"email\"\n  label=\"Work email\"\n  expose\n  tool-name=\"set-work-email\"\n  tool-description=\"Set the customer's work email address.\"\n>\u003C\u002Fwmcp-input>\n",[25,464,465,472,482,493,499,510,521],{"__ignoreMap":51},[55,466,467,469],{"class":57,"line":58},[55,468,62],{"class":61},[55,470,471],{"class":65},"wmcp-input\n",[55,473,474,477,479],{"class":57,"line":107},[55,475,476],{"class":69},"  name",[55,478,74],{"class":73},[55,480,481],{"class":77},"\"email\"\n",[55,483,485,488,490],{"class":57,"line":484},3,[55,486,487],{"class":69},"  label",[55,489,74],{"class":73},[55,491,492],{"class":77},"\"Work email\"\n",[55,494,496],{"class":57,"line":495},4,[55,497,498],{"class":69},"  expose\n",[55,500,502,505,507],{"class":57,"line":501},5,[55,503,504],{"class":69},"  tool-name",[55,506,74],{"class":73},[55,508,509],{"class":77},"\"set-work-email\"\n",[55,511,513,516,518],{"class":57,"line":512},6,[55,514,515],{"class":69},"  tool-description",[55,517,74],{"class":73},[55,519,520],{"class":77},"\"Set the customer's work email address.\"\n",[55,522,524,526,528],{"class":57,"line":523},7,[55,525,99],{"class":61},[55,527,66],{"class":65},[55,529,104],{"class":61},[531,532,533,543,549],"ul",{},[534,535,536,539,540,455],"li",{},[25,537,538],{},"tool-name"," overrides the generated ",[25,541,542],{},"fill-\u003Cname>",[534,544,545,548],{},[25,546,547],{},"tool-description"," overrides the generated description.",[534,550,551,553,554,557],{},[25,552,233],{}," marks the tool ",[25,555,556],{},"consequentialHint: true",", so the agent confirms with the user before calling it. Submit buttons set it by default.",[21,559,560,561,159,564,447,566,447,569,572,573,447,576,579,580,582,583,585,586,589,590,592,593,596,597,600,601,603],{},"Generated names are ",[116,562,563],{},"kebab-case",[25,565,158],{},[25,567,568],{},"open-booking",[25,570,571],{},"submit-book","), matching the examples in Chrome's WebMCP documentation; the spec allows ",[25,574,575],{},"_",[25,577,578],{},"-"," and ",[25,581,455],{}," equally, and ",[25,584,538],{}," can use any of them. Tool names must match the spec's ",[25,587,588],{},"[A-Za-z0-9_.-]{1,128}",". A ",[25,591,153],{}," that doesn't (spaces, brackets, non-ASCII) is sanitized — ",[25,594,595],{},"user[email]"," becomes ",[25,598,599],{},"fill-user-email"," — with a console warning in development; set ",[25,602,538],{}," to choose the name yourself.",[21,605,606,607,447,610,613,614,617],{},"Controls with enumerated values (",[25,608,609],{},"\u003Cwmcp-select>",[25,611,612],{},"\u003Cwmcp-radio-group>",") generate an ",[25,615,616],{},"enum","-typed schema so the agent knows the exact allowed values.",[619,620,621],"blockquote",{},[21,622,623,626,627,629,630,632,633,635,636,455],{},[116,624,625],{},"Tool names are page-global."," Two ",[25,628,44],{},"d controls that resolve to the same tool name — say two fields that both become ",[25,631,158],{}," — collide, and the host rejects the duplicate, so the second control won't be agent-callable. webmcpui logs a console warning when it sees this; give one control a unique ",[25,634,153],{},", or override it with ",[25,637,538],{},[38,639,641],{"id":640},"only-on-a-secure-context","Only on a secure context",[21,643,644,645,648,649,652,653,656,657,660,661,664],{},"WebMCP is a secure-context feature, so ",[25,646,647],{},"document.modelContext"," exists only on ",[116,650,651],{},"HTTPS"," pages — it's ",[25,654,655],{},"undefined"," on plain HTTP (",[25,658,659],{},"localhost"," counts as secure). webmcpui's feature detection reads that as \"no host present\" and quietly does nothing, so your controls stay perfectly good form controls. If you're testing exposure on an ",[25,662,663],{},"http:\u002F\u002F"," staging box and see no tools, that's why.",[21,666,667],{},"If you feature-detect yourself, the recommended check is:",[46,669,673],{"className":670,"code":671,"language":672,"meta":51,"style":51},"language-js shiki shiki-themes github-light-default ayu-dark","if (isSecureContext && 'modelContext' in document) { \u002F* host present *\u002F }\n","js",[25,674,675],{"__ignoreMap":51},[55,676,677,681,684,688,691,694,697,700],{"class":57,"line":58},[55,678,680],{"class":679},"s7jPt","if",[55,682,683],{"class":279}," (isSecureContext ",[55,685,687],{"class":686},"snFdW","&&",[55,689,690],{"class":77}," 'modelContext'",[55,692,693],{"class":686}," in",[55,695,696],{"class":279}," document) { ",[55,698,699],{"class":110},"\u002F* host present *\u002F",[55,701,354],{"class":279},[38,703,705],{"id":704},"iframes-and-permissions-policy","Iframes and permissions policy",[21,707,708,709,712,713,718,719,722,723,712,726,729,730,733],{},"WebMCP is gated by the ",[25,710,711],{},"tools"," ",[30,714,717],{"href":715,"rel":716},"https:\u002F\u002Fdeveloper.mozilla.org\u002Fdocs\u002FWeb\u002FHTTP\u002FPermissions_Policy",[34],"Permissions Policy"," feature, which defaults to ",[25,720,721],{},"'self'",". Controls inside a ",[116,724,725],{},"cross-origin",[25,727,728],{},"\u003Ciframe>"," only get a ",[25,731,732],{},"modelContext"," if the embedding page allows it:",[46,735,737],{"className":48,"code":736,"language":50,"meta":51,"style":51},"\u003Ciframe src=\"https:\u002F\u002Fwidgets.example.com\u002Fbooking\" allow=\"tools\">\u003C\u002Fiframe>\n",[25,738,739],{"__ignoreMap":51},[55,740,741,743,746,749,751,754,757,759,762,764,766],{"class":57,"line":58},[55,742,62],{"class":61},[55,744,745],{"class":65},"iframe",[55,747,748],{"class":69}," src",[55,750,74],{"class":73},[55,752,753],{"class":77},"\"https:\u002F\u002Fwidgets.example.com\u002Fbooking\"",[55,755,756],{"class":69}," allow",[55,758,74],{"class":73},[55,760,761],{"class":77},"\"tools\"",[55,763,99],{"class":61},[55,765,745],{"class":65},[55,767,104],{"class":61},[21,769,770,771,774],{},"Tools are also scoped to the ",[116,772,773],{},"document"," that registered them: they disappear on navigation, and by default are visible only to same-origin documents in the same tab.",[38,776,778],{"id":777},"designed-for-a-human-in-the-loop","Designed for a human in the loop",[21,780,781,782,785,786,789,790,793,794,797,798,803,804,806,807,447,810,447,813,816,817,820,821,824,825,829],{},"WebMCP is explicitly a ",[116,783,784],{},"human-in-the-loop"," API — its own goals call out cooperative workflows where a person delegates to an agent while keeping visibility and control, and rule out fully autonomous, headless operation. There is, as yet, ",[116,787,788],{},"no built-in confirmation or user-prompting primitive"," in ",[25,791,792],{},"registerTool"," (a ",[25,795,796],{},"requestUserInput()"," is ",[30,799,802],{"href":800,"rel":801},"https:\u002F\u002Fgithub.com\u002Fwebmachinelearning\u002Fwebmcp\u002Fissues\u002F165",[34],"under discussion","). What the spec does offer is a set of tool ",[116,805,224],{}," — ",[25,808,809],{},"readOnlyHint",[25,811,812],{},"consequentialHint",[25,814,815],{},"untrustedContentHint"," — that tell the agent how careful to be. So consent stays a UI decision you make: an agent can ",[440,818,819],{},"set"," a value or ",[440,822,823],{},"open"," a ",[30,826,828],{"href":827},"\u002Fdocs\u002Felements\u002Fdialog","dialog",", but the consequential step — submitting, confirming — remains a deliberate human action. That's the line webmcpui draws by default.",[38,831,833],{"id":832},"imperative-and-declarative","Imperative and declarative",[21,835,836,837,840,841,843,844,847,848,447,851,447,854,447,857,860,861,864,865,870,871,875],{},"The API webmcpui builds on is the ",[116,838,839],{},"imperative"," one (",[25,842,792],{},"), which is the only standards-track path today. A ",[116,845,846],{},"declarative"," companion — native attributes (",[25,849,850],{},"toolname",[25,852,853],{},"tooldescription",[25,855,856],{},"toolparamdescription",[25,858,859],{},"toolautosubmit",") that annotate a plain ",[25,862,863],{},"\u003Cform>"," — was removed from the spec in October 2026 and kept as a ",[30,866,869],{"href":867,"rel":868},"https:\u002F\u002Fgithub.com\u002Fwebmachinelearning\u002Fwebmcp\u002Fblob\u002Fmain\u002Fdeclarative-api-explainer.md",[34],"\"future exploration\" explainer","; Chrome still ships it in the origin trial. webmcpui uses the imperative path under the hood because it's the lower-level primitive and the only one that covers interaction beyond forms — a ",[30,872,874],{"href":873},"\u002Fdocs\u002Felements\u002Fbutton","button","'s click or a dialog's open aren't expressible as form annotations.",[21,877,878,879,885,886,889,890,893,894,897,898,901],{},"For forms themselves, webmcpui speaks the declarative vocabulary too: ",[30,880,882],{"href":881},"\u002Fdocs\u002Felements\u002Fform",[25,883,884],{},"\u003Cwmcp-form>"," exposes a whole form as one tool with a schema synthesized the way Chrome does it, and ",[25,887,888],{},"exposeForm()"," \u002F ",[25,891,892],{},"observeDeclarativeForms()"," from ",[25,895,896],{},"@webmcpui\u002Fwebmcp\u002Fforms"," do the same for any plain ",[25,899,900],{},"\u003Cform toolname tooldescription>"," on any page — a polyfill for the declarative API on top of the imperative one, which steps aside where the browser has native support.",[38,903,905],{"id":904},"spec-status","Spec status",[21,907,908,909,912,913,915,916,919,920,923,924,928,929,934],{},"As of late 2026 WebMCP is a W3C CG draft shipping behind ",[116,910,911],{},"origin trials in Chrome 149–162 and Edge 150+"," (Edge's runs to March 2027), at Chrome's \"prepare to ship\" stage with no Intent to Ship yet. The entry point is ",[25,914,647],{}," only — ",[25,917,918],{},"navigator.modelContext"," was deprecated in Chrome 150 and removed in 152. Agents consuming page tools today include Brave Leo, ChatGPT Desktop and Meta's Ray-Ban Display; Gemini in Chrome's integration is still in developer trials. The surface still shifts month to month, so everything here is additive and feature-detected: adopting webmcpui costs nothing today and pays off as hosts ship. To try it locally, enable ",[25,921,922],{},"chrome:\u002F\u002Fflags\u002F#enable-webmcp-testing","; to exercise exposure without a real host, use the ",[30,925,927],{"href":926},"\u002Fdocs\u002Ftesting","fake agent",". We keep a running ",[30,930,933],{"href":931,"rel":932},"https:\u002F\u002Fgithub.com\u002Fwebmcpui\u002Fwebmcpui\u002Fblob\u002Fmain\u002Fdocs\u002Fwebmcp-gap-analysis.md",[34],"gap analysis"," against the spec.",[936,937,938],"style",{},"html pre.shiki code .sqV5G, html code.shiki .sqV5G{--shiki-default:#1F2328;--shiki-dark:#39BAE680}html pre.shiki code .sfBZl, html code.shiki .sfBZl{--shiki-default:#116329;--shiki-dark:#39BAE6}html pre.shiki code .sI192, html code.shiki .sI192{--shiki-default:#0550AE;--shiki-dark:#FFB454}html pre.shiki code .siQKT, html code.shiki .siQKT{--shiki-default:#1F2328;--shiki-dark:#BFBDB6B3}html pre.shiki code .sxLuP, html code.shiki .sxLuP{--shiki-default:#0A3069;--shiki-dark:#AAD94C}html pre.shiki code .s5O_a, html code.shiki .s5O_a{--shiki-default:#6E7781;--shiki-default-font-style:inherit;--shiki-dark:#5A6673;--shiki-dark-font-style:italic}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBz_o, html code.shiki .sBz_o{--shiki-default:#1F2328;--shiki-dark:#BFBDB6}html pre.shiki code .sQY3k, html code.shiki .sQY3k{--shiki-default:#0550AE;--shiki-dark:#D2A6FF}html pre.shiki code .sXtjN, html code.shiki .sXtjN{--shiki-default:#CF222E;--shiki-dark:#95E6CB}html pre.shiki code .s7jPt, html code.shiki .s7jPt{--shiki-default:#CF222E;--shiki-dark:#FF8F40}html pre.shiki code .snFdW, html code.shiki .snFdW{--shiki-default:#CF222E;--shiki-dark:#F29668}",{"title":51,"searchDepth":107,"depth":107,"links":940},[941,943,944,945,946,947,948,949,950],{"id":40,"depth":107,"text":942},"Opt in with expose",{"id":122,"depth":107,"text":123},{"id":248,"depth":107,"text":249},{"id":458,"depth":107,"text":459},{"id":640,"depth":107,"text":641},{"id":704,"depth":107,"text":705},{"id":777,"depth":107,"text":778},{"id":832,"depth":107,"text":833},{"id":904,"depth":107,"text":905},"How a form control becomes an imperative WebMCP tool an agent can discover and call.","md","Getting started",{},true,"\u002Fdocs\u002Fwebmcp",{"title":12,"description":951},"docs\u002Fwebmcp","XBfW6hWxlj41hLbgtZIeqMVABTXy4rgIwUOz7yxmrqo",[961,966,970,974,978,982,987,990,992,996,1000,1004,1008,1011,1014,1018,1022,1027,1031,1035,1039,1043,1047,1052,1055,1059,1063,1066,1070,1074,1077,1080,1083,1085,1088],{"path":962,"title":963,"navTitle":964,"group":965,"order":107,"groupOrder":495},"\u002Fdocs\u002Felements\u002Falert","\u003Cwmcp-alert>","Alert","Presentational",{"path":967,"title":968,"navTitle":969,"group":965,"order":484,"groupOrder":495},"\u002Fdocs\u002Felements\u002Favatar","\u003Cwmcp-avatar>","Avatar",{"path":971,"title":972,"navTitle":973,"group":965,"order":58,"groupOrder":495},"\u002Fdocs\u002Felements\u002Fbadge","\u003Cwmcp-badge>","Badge",{"path":873,"title":975,"navTitle":976,"group":977,"order":58,"groupOrder":484},"\u003Cwmcp-button>","Button","Interaction",{"path":979,"title":980,"navTitle":981,"group":965,"order":512,"groupOrder":495},"\u002Fdocs\u002Felements\u002Fcard","\u003Cwmcp-card>","Card",{"path":983,"title":984,"navTitle":985,"group":986,"order":495,"groupOrder":107},"\u002Fdocs\u002Felements\u002Fcheckbox","\u003Cwmcp-checkbox>","Checkbox","Elements",{"path":827,"title":988,"navTitle":989,"group":977,"order":107,"groupOrder":484},"\u003Cwmcp-dialog>","Dialog",{"path":881,"title":884,"navTitle":991,"group":986,"order":512,"groupOrder":107},"Form",{"path":993,"title":994,"navTitle":995,"group":986,"order":58,"groupOrder":107},"\u002Fdocs\u002Felements\u002Finput","\u003Cwmcp-input>","Input",{"path":997,"title":998,"navTitle":999,"group":977,"order":484,"groupOrder":484},"\u002Fdocs\u002Felements\u002Fmenu","\u003Cwmcp-menu>","Menu",{"path":1001,"title":1002,"navTitle":1003,"group":977,"order":501,"groupOrder":484},"\u002Fdocs\u002Felements\u002Fpopover","\u003Cwmcp-popover>","Popover",{"path":1005,"title":1006,"navTitle":1007,"group":965,"order":495,"groupOrder":495},"\u002Fdocs\u002Felements\u002Fprogress","\u003Cwmcp-progress>","Progress",{"path":1009,"title":612,"navTitle":1010,"group":986,"order":501,"groupOrder":107},"\u002Fdocs\u002Felements\u002Fradio","Radio group",{"path":1012,"title":609,"navTitle":1013,"group":986,"order":484,"groupOrder":107},"\u002Fdocs\u002Felements\u002Fselect","Select",{"path":1015,"title":1016,"navTitle":1017,"group":965,"order":501,"groupOrder":495},"\u002Fdocs\u002Felements\u002Fseparator","\u003Cwmcp-separator>","Separator",{"path":1019,"title":1020,"navTitle":1021,"group":965,"order":523,"groupOrder":495},"\u002Fdocs\u002Felements\u002Fskeleton","\u003Cwmcp-skeleton>","Skeleton",{"path":1023,"title":1024,"navTitle":1025,"group":965,"order":1026,"groupOrder":495},"\u002Fdocs\u002Felements\u002Fspinner","\u003Cwmcp-spinner>","Spinner",8,{"path":1028,"title":1029,"navTitle":1030,"group":977,"order":523,"groupOrder":484},"\u002Fdocs\u002Felements\u002Fswitch","\u003Cwmcp-switch>","Switch",{"path":1032,"title":1033,"navTitle":1034,"group":977,"order":495,"groupOrder":484},"\u002Fdocs\u002Felements\u002Ftabs","\u003Cwmcp-tabs>","Tabs",{"path":1036,"title":1037,"navTitle":1038,"group":986,"order":107,"groupOrder":107},"\u002Fdocs\u002Felements\u002Ftextarea","\u003Cwmcp-textarea>","Textarea",{"path":1040,"title":1041,"navTitle":1042,"group":977,"order":512,"groupOrder":484},"\u002Fdocs\u002Felements\u002Ftoast","\u003Cwmcp-toast>","Toast",{"path":1044,"title":1045,"navTitle":1046,"group":977,"order":1026,"groupOrder":484},"\u002Fdocs\u002Felements\u002Ftooltip","\u003Cwmcp-tooltip>","Tooltip",{"path":1048,"title":1049,"navTitle":1050,"group":1051,"order":495,"groupOrder":501},"\u002Fdocs\u002Fexamples\u002Fbrain-dump","Brain-dump → to-do list","Brain-dump → to-dos","Examples",{"path":1053,"title":1054,"navTitle":1054,"group":1051,"order":501,"groupOrder":501},"\u002Fdocs\u002Fexamples\u002Fcrm-lead","Email → CRM lead",{"path":1056,"title":1057,"navTitle":1058,"group":1051,"order":523,"groupOrder":501},"\u002Fdocs\u002Fexamples\u002Fdashboard","Ask the dashboard a question","Dashboard control",{"path":1060,"title":1061,"navTitle":1062,"group":1051,"order":512,"groupOrder":501},"\u002Fdocs\u002Fexamples\u002Fexpense-report","Receipt → expense report","Receipt → expense",{"path":1064,"title":1051,"navTitle":1065,"group":1051,"order":58,"groupOrder":501},"\u002Fdocs\u002Fexamples","Overview",{"path":1067,"title":1068,"navTitle":1069,"group":1051,"order":107,"groupOrder":501},"\u002Fdocs\u002Fexamples\u002Frecipe-cart","Recipe → grocery cart","Recipe → cart",{"path":1071,"title":1072,"navTitle":1073,"group":1051,"order":484,"groupOrder":501},"\u002Fdocs\u002Fexamples\u002Frestaurant-booking","Book a table in one sentence","Restaurant booking",{"path":1075,"title":1076,"navTitle":1076,"group":953,"order":512,"groupOrder":58},"\u002Fdocs\u002Fframeworks","React & Vue",{"path":1078,"title":1079,"navTitle":1079,"group":953,"order":58,"groupOrder":58},"\u002Fdocs","Introduction",{"path":1081,"title":1082,"navTitle":1082,"group":953,"order":107,"groupOrder":58},"\u002Fdocs\u002Finstallation","Installation",{"path":926,"title":1084,"navTitle":1084,"group":953,"order":501,"groupOrder":58},"Testing",{"path":1086,"title":1087,"navTitle":1087,"group":953,"order":484,"groupOrder":58},"\u002Fdocs\u002Fvalidation","Validation",{"path":956,"title":12,"navTitle":12,"group":953,"order":495,"groupOrder":58},{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":1090},"\u003Cg fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\">\u003Cpath d=\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\"\u002F>\u003Cpath d=\"M14 2v5a1 1 0 0 0 1 1h5M10 9H8m8 4H8m8 4H8\"\u002F>\u003C\u002Fg>",{"left":4,"top":4,"width":5,"height":5,"rotate":4,"vFlip":6,"hFlip":6,"body":1092},"\u003Cpath fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m12 19l-7-7l7-7m7 7H5\"\u002F>",1796013673587]