Webwright icon indicating copy to clipboard operation
Webwright copied to clipboard

May I ask:what is a good way to strictly prevent an LLM from generating or outputting large amounts of HTML/DOM code? I only want it to use semantic snapshots.

Open baijiu-in-my-cup opened this issue 5 months ago • 0 comments

May I ask:what is a good way to strictly prevent an LLM from generating or outputting large amounts of HTML/DOM code? I only want it to use semantic snapshots.

Using direct code execution let the LLM drive Playwright, but it acts overly clever, which makes my token consumption explode.

baijiu-in-my-cup avatar Jun 16 '26 17:06 baijiu-in-my-cup