Replies: 3 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. |
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