7 tools registered. Strongest in WebMCP use, weakest in human experience.
No agent run recorded yet.
// Use the canonical entry point - navigator.modelContext is deprecated.
document.modelContext.provideContext({ tools: [/* ... */] });search_cocktails: description is 519 characters, over Chrome's 500-character guidance; list_cocktails: description is 543 characters, over Chrome's 500-character guidance; list_cocktails: 1 parameter {
name: "search_cocktails",
inputSchema: {
type: "object",
properties: {
query: { type: "string", description: "What to search for" }
},
required: ["query"]
}
}search_cocktails, list_cocktails, get_cocktail_recipe, find_cocktails_by_ingredient, find_cocktails_in_movie<!-- Give the tool a visible counterpart: a declarative form is one the person can see and use too. -->
<form toolname="search_cocktails" tooldescription="...">
<!-- the same action, as UI -->
</form>{
"name": "search_cocktails",
"description": "Search the cocktail catalogue by name (substring, case- and diacritic-insensitive, so \"carre\" matches \"Carré\"). Returns up to 25 summary results — name, page URL, family, glassware — ranked exact match first, then prefix, then suffix, then any substring. Use this when the user names a drink (even fuzzily) and you want to confirm it exists or disambiguate similar names; once you have a single name, call get_cocktail_recipe for the full recipe. For ingredient-based discovery use find_cocktails_by_ingredient instead.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Cocktail name or part of one — a single drink name, not an ingredient or category.",
"examples": [
"Negroni",
"margarita",
"carre"
]
}
},
"required": [
"query"
]
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false
}
}// Use the canonical entry point - navigator.modelContext is deprecated.
document.modelContext.provideContext({ tools: [/* ... */] });search_cocktails: description is 519 characters, over Chrome's 500-character guidance; list_cocktails: description is 543 characters, over Chrome's 500-character guidance; list_cocktails: 1 parameter {
name: "search_cocktails",
inputSchema: {
type: "object",
properties: {
query: { type: "string", description: "What to search for" }
},
required: ["query"]
}
}document.modelContext.dispatchEvent(new Event("toolchange"));{ name: "random_cocktail" /* short, unique, verb-based */ }search_cocktails, list_cocktails, get_cocktail_recipe, find_cocktails_by_ingredient, find_cocktails_in_movie<!-- Give the tool a visible counterpart: a declarative form is one the person can see and use too. -->
<form toolname="search_cocktails" tooldescription="...">
<!-- the same action, as UI -->
</form>