Expose site actions
Built WebMCP tool suites that surfaced site actions as navigator.modelContext tools callable by LLM agents.
HUAWEI · WEB TECHNOLOGY LAB · 2026
I built the tooling and evaluation infrastructure used to study how LLM agents act across real web environments—and to separate model behavior from failures in the surrounding system.
THE QUESTION
Browser agents can fail because of the model, the page, the tool catalog, or the evaluation harness. The study needed infrastructure that could expose site actions consistently, compare five execution modes, and identify where a failure actually entered the stack.
MY ROLE
Built WebMCP tool suites that surfaced site actions as navigator.modelContext tools callable by LLM agents.
Engineered a Python evaluation harness with a site-injection proxy and automated tool verification across Docker-hosted sites.
Built and debugged browser-agent infrastructure for a WebArena A/B study spanning five modes and multiple models.
Followed errors across tool registration, dispatch, page state, and agent execution instead of treating every failed task as a model failure.
EVALUATION PIPELINE
Verification sits inside the pipeline, so a missing or misrouted tool call is visible before it is mistaken for agent behavior.
Site actions become browser-native tools.
A proxy injects tools and checks availability.
BrowserGym executes WebArena study modes.
Runs are classified before results are compared.
FAILURE ANALYSIS
Dispatch defect
A dispatch bug caused repeated failures across the study. Tracing the call path made that infrastructure fault visible instead of letting it distort the model comparison.
Element alignment
After the failure path was isolated and the infrastructure was corrected, the observed element-ID error rate fell by 20 percentage points.
Metric scope: the before-and-after rates come from internal WebArena study runs. Confidential study data, model-level results, and implementation details are intentionally omitted.
TAKEAWAY
Giving an agent better tools is only useful when tool registration, dispatch, page state, and scoring stay aligned. The most important work was building enough observability to tell those layers apart.