mcp-playwright
mcp-playwright copied to clipboard
allow filtering of html
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
Looks great, can you please help me add the tests, it will be great, thanks for the help !
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?
yes please
@executeautomation can. this be merged ?? this seems like a very important fix.
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
This looks great, and the changes will be included in today’s release!