In A Minimal WebMCP Demo in Chrome: Typed, Tested Headless, and Driven by an Agent, xbill uses a to-do page to test four browser tools. The most revealing case came after the basic checks passed. In one run, the agent reported the exact count returned by the page, but had asked for all items when the question was about open items.
Check the filter alongside the answer
Give the page two open items and one completed item. Ask how many are open, then check the recorded tool arguments, the tool response and the final answer. A call that requests open items should return two. A call that requests all items should return three. If the agent reports three open items, the tool can be working exactly as written while the interaction still fails. Including a completed item in the fixture makes the two cases distinguishable.
The demo computes its count in the page and returns it alongside the selected status. The demo repository includes headless and scripted checks for the tools. Those checks can establish what a given call does before a separate test examines which call the model chooses.
Exercise the denied-write path
The author also ran the interaction with permission prompts denied. The write calls in that trial did not reach the page, and the list tool still ran. A regression test can check the list and then inspect the page state after a denied update. The page state shows whether the update took effect even when the agent's reply is ambiguous.
The published observations come from one Chrome and model setup. Keep the filter, count and state assertions explicit so the same fixture can be rerun after changing the browser or agent.
When tracing a failure, run the list call directly with the same fixture. If the direct response is wrong, inspect how the page applies the filter. If the direct response agrees with the fixture, compare it with the arguments in the agent trace. This narrows the investigation to the page handler, the selected arguments or the wording of the final answer.