maidr and browser AI agents (WebMCP)

In a browser with WebMCP, this chart is offered to the browser's AI agent as five tools: maidr_list_charts, maidr_get_layer_data, maidr_navigate, maidr_list_commands and maidr_run_command. The agent can then answer questions such as "which day had the most tips?" from the chart's data, move your position to a bar when you ask, or run one of your keyboard commands for you, such as turning braille off or starting autoplay -- and, when you ask to be taken there, move your keyboard focus into the chart first.

How to test

  1. In Chrome, open chrome://flags/#enable-webmcp-testing, set it to Enabled, and relaunch.
  2. Install the Model Context Tool Inspector extension and open it on this page. It lists the five tools and can call them: start with maidr_list_charts and {}.
  3. Call maidr_navigate with {"layerId": "tips", "row": 0, "col": 2} while you are in the chart (click it or Tab to it): your screen reader announces Thursday, exactly as an arrow key would. From outside the chart, add "focus": true to be taken there: your focus moves into the chart and you hear Thursday. Where the page does not have the browser's focus, as with an agent in a side panel, the result says "focused": false and the move waits until you next enter the chart.
  4. Call maidr_list_commands with {} to see your commands, their keys and your current modes, then maidr_run_command with {"command": "toggle_text"}. In the chart, you hear the new text mode at once; outside it, the command waits and runs when you next enter the chart. Commands that open a dialog, such as help or settings, are listed but stay yours to open.
  5. Open Settings (Ctrl + ,, or Cmd + , on a Mac), uncheck Browser AI Agent Access on the General tab and save: the tools disappear from the inspector without a reload. Check it again to bring them back.

The page must be served over https or from localhost. See Browser AI Agents (WebMCP) for the tools, what they return, and how a page author can switch them off.

Sat Sun Thur Fri Day