Your browser
Checking…
To connect a real agent, use a recent Chrome and enable the "WebMCP for testing" flag in chrome://flags.
AI agents
WebMCP is a new browser standard. A web page describes what it can do as tools, each with a name, a description and a JSON input schema. An AI agent in the browser then uses the site through those tools instead of guessing where to click.
Checking…
To connect a real agent, use a recent Chrome and enable the "WebMCP for testing" flag in chrome://flags.
The page declares tools
Each feature registers its tools with Angular. Minesweeper tools exist only while the game is on screen.
The browser lists them
The browser shows the agent the tools of the open page: names, descriptions and input schemas.
The agent calls a tool
The tool calls the same Angular service as the buttons, so the page updates as if a person had clicked.
Call a tool the way an agent would. The game on the right is live, so its tools are active on this page as well.
Difficulty
Every tool call on this site, from an AI agent or from the playground. Expand a row to see the JSON.
Every tool this website can expose, and where it is available.
list_pages Active now Read-onlyLists the pages of this website, the article ids, the supported languages and the page that is open now.
No input
navigate_to_page Active now Opens a page of this website in the current language. For a specific article pass page "articles" and its article id.
{
"type": "object",
"properties": {
"page": {
"type": "string",
"enum": [
"home",
"games",
"minesweeper",
"chess",
"mill",
"abalone",
"articles",
"joker",
"webmcp",
"contact",
"links"
],
"description": "Page to open."
},
"article": {
"type": "string",
"enum": [
"resource-sandbox",
"birds",
"r2r-vs-ros2"
],
"description": "Optional article id, only with page \"articles\"."
}
},
"required": [
"page"
]
}set_language Active now Switches the website language and keeps the current page open.
{
"type": "object",
"properties": {
"language": {
"type": "string",
"enum": [
"pl",
"en",
"de",
"fr",
"es",
"it",
"pt",
"uk",
"no",
"sv",
"zh",
"ja",
"hi"
],
"description": "pl=Polish, en=English, de=German, fr=French, es=Spanish, it=Italian, pt=Portuguese (Brazil), uk=Ukrainian, no=Norwegian, sv=Swedish, zh=Chinese, ja=Japanese, hi=Hindi."
}
},
"required": [
"language"
]
}set_color_scheme Active now Switches the website between the light and the dark color scheme.
{
"type": "object",
"properties": {
"scheme": {
"type": "string",
"enum": [
"light",
"dark"
]
}
},
"required": [
"scheme"
]
}set_seasonal_effect Active now Sets the decorative animated overlay. "auto" picks one by date: snow in winter, butterflies in spring, halloween in October.
{
"type": "object",
"properties": {
"effect": {
"type": "string",
"enum": [
"auto",
"off",
"snow",
"butterflies",
"halloween"
]
}
},
"required": [
"effect"
]
}minesweeper_get_board Active now Read-onlyReturns the visible board, the game status and the counters. Hidden cells never reveal whether they hold a mine.
No input
minesweeper_reveal_cell Active now Reveals a hidden cell, like a left click. Revealing a mine loses the game. Returns the updated board.
{
"type": "object",
"properties": {
"row": {
"type": "integer",
"minimum": 0,
"maximum": 23,
"description": "0-based row, top to bottom."
},
"col": {
"type": "integer",
"minimum": 0,
"maximum": 29,
"description": "0-based column, left to right."
}
},
"required": [
"row",
"col"
]
}minesweeper_toggle_flag Active now Toggles a flag on a hidden cell, like a right click. Returns the updated board.
{
"type": "object",
"properties": {
"row": {
"type": "integer",
"minimum": 0,
"maximum": 23,
"description": "0-based row, top to bottom."
},
"col": {
"type": "integer",
"minimum": 0,
"maximum": 29,
"description": "0-based column, left to right."
}
},
"required": [
"row",
"col"
]
}minesweeper_new_game Active now ConsequentialDiscards the current game and starts a new one. Optionally switches the difficulty: beginner (9×9, 10 mines), intermediate (16×16, 40 mines), expert (16 rows × 30 columns, 99 mines) or custom (the last custom size).
{
"type": "object",
"properties": {
"difficulty": {
"type": "string",
"enum": [
"beginner",
"intermediate",
"expert",
"custom"
]
}
}
}ask_joke_botUntrusted outputSends a message to the AI joke bot on this page. The message and the answer appear in the chat. Returns the joke.
{
"type": "object",
"properties": {
"topic": {
"type": "string",
"description": "Topic or message for the joke bot."
}
},
"required": [
"topic"
]
}Tools are plain constants that call Angular services. Registration ties them to the lifetime of the app or of a component.
Define a tool
export const SET_COLOR_SCHEME = defineWebMcpTool({
name: 'set_color_scheme',
description: 'Switches the website between the light and the dark color scheme.',
inputSchema: {
type: 'object',
properties: { scheme: { type: 'string', enum: ['light', 'dark'] } },
required: ['scheme'],
},
execute: (input) => {
inject(ColorSchemeService).setScheme(input.scheme);
return `Color scheme set to ${input.scheme}.`;
},
});Register tools for every page
export const appConfig: ApplicationConfig = {
providers: [
provideWebMcpTools('site', SITE_WEBMCP_TOOLS),
],
};Register tools for one component
export class MinesweeperComponent {
constructor() {
declareWebMcpTools('minesweeper', MINESWEEPER_WEBMCP_TOOLS);
}
}Try it in the DevTools console
const tools = await document.modelContext.getTools();
tools.map((tool) => tool.name);
const reveal = tools.find((tool) => tool.name === 'minesweeper_reveal_cell');
await document.modelContext.executeTool(reveal, { row: 4, col: 4 });