autogen icon indicating copy to clipboard operation
autogen copied to clipboard

Allowlist for Magentic One's Web Surfer

Open ekzhu opened this issue 2 years ago • 1 comments

What feature would you like to be added?

AutoGen's MultimodalWebSurfer supported configuring an allow list (or block list) for limiting the reach of the WebSurfer. This should be revisited.

Why is this needed?

This is very important for ensuring that the agents stick to intended websites and playgrounds when running fully autonomously (e.g., with WebArena).

ekzhu avatar Oct 03 '24 22:10 ekzhu

+1 on revisiting this — for fully autonomous runs, navigation scope is half the control problem, and the extraction step is the other half.

An allowlist controls where the Web Surfer goes, but not what it reads once it's there. The browser hands the agent rendered HTML — nav bars, cookie banners, scripts, changing markup — and that whole blob becomes the agent's context even on an allowed domain. WebArena pages are static and curated so this is easy to miss in benchmarks; real pages change structure between visits, so two runs over the same allowlisted site can feed the agent very different noise.

A useful companion primitive: a deterministic URL → clean-markdown/JSON extraction step between the browser and the LLM, so the agent reasons over the page's actual content rather than the chrome around it. That also makes the allowlist more meaningful — you can scope content (e.g. main-article text only), not just domains.

FWIW I built an MIT-licensed API that does exactly this (https://github.com/NG-PR0JECT/scrapiq) — happy to share the extraction approach if it helps inform the Web Surfer's read path.

NG-PR0JECT avatar Aug 29 '26 06:08 NG-PR0JECT