mcp-playwright icon indicating copy to clipboard operation
mcp-playwright copied to clipboard

allow filtering of html

Open SethPaul opened this issue 7 months ago • 3 comments

The full html can add a lot of tokens to a chat context This change set adds filtering prior to getting into the chat context

SethPaul avatar Apr 25 '25 19:04 SethPaul

Looks great, can you please help me add the tests, it will be great, thanks for the help !

executeautomation avatar Apr 27 '25 02:04 executeautomation

Sorry, I was reluctant to add the tests since so much has to be mocked for this setting. Hard to confirm the actual behavior without just using the mcp but these at least help.

Do these added tests seem to meet the need effectively?

SethPaul avatar Apr 30 '25 17:04 SethPaul

yes please

executeautomation avatar May 01 '25 04:05 executeautomation

@executeautomation can. this be merged ?? this seems like a very important fix.

usamaJ17 avatar Jun 05 '25 08:06 usamaJ17

Could this please get merged? Especially the option to get only the HTML of a specific element seems really important to reduce token count when giving the HTML output to an LLM

maurb avatar Jun 18 '25 06:06 maurb

This looks great, and the changes will be included in today’s release!

executeautomation avatar Jun 19 '25 22:06 executeautomation