Repository navigation
Replies: 4 comments 5 replies
|
Usually the slowness comes from the LLM as the browser operations are relatively fast. I would suggest using a faster model. Otherwise, do you have specifics about what MCP tool is slow for you? |
|
Agreeing with @OrKoN — browser actions themselves are usually fast; most wall time and tokens come from the LLM ↔ MCP loop (planning + stuffing large tool results back into context). Things that usually help in practice:
If it is still slow after that, the useful signal is which specific tool dominates latency/size, plus whether the host is re-sending the full history each turn. That is usually an agent/client config issue more than a Chrome DevTools MCP bug. |
|
A practical way to reduce both latency and token use is to treat the MCP loop as a state-diff workflow, not a full re-inspection workflow. What has worked well for me with a persistent/remote CDP Chrome session:
For remote use, keeping Chrome alive behind CDP also removes repeated authentication/setup cost, but CDP exposure should be protected (bind locally or put it behind an authenticated tunnel; do not expose the debugging port directly to the Internet). So I would profile two things separately: tool latency and tool-result size. In many cases the browser call itself is fast; the expensive part is repeatedly feeding large snapshots/screenshots/network dumps back into the model context. |
|
Two concrete settings to add to the advice above, checked against the published 1.10.1 documentation:
The CLI is another option to compare, but it is experimental and its generation excludes For a useful comparison, pin the package version and model, use the same page and required outcome, and change one factor at a time. Record complete-task seconds, verified success/failure, tool calls, retries and host-reported token usage when available; keep token counts separate from tool-result byte sizes. Separate cold starts from reused sessions and retain failed attempts. I maintain BrowseSprint's manual browser-workflow comparison guide and blank worksheet. Three baseline and three changed runs are a starting diagnostic, not statistical proof. I have not benchmarked these Chrome DevTools configurations or established a speed/token saving. This reply was prepared with AI assistance and checked against the release docs. |
Uh oh!
There was an error while loading. Please reload this page.
Currently, using AI to operate browsers and achieve some automated functions, I found that the speed is very slow and it consumes a lot of tokens when calling mcp. Are there any optimization methods? That is, how to make it faster?
All reactions