About puppeteer_screenshot

When Puppeteer generates screenshots, it produces binary image data or base64 encoded strings, but Claude’s communication protocol only supports plain text data. When the system attempts to transmit image data, it triggers a ‘Content type ‘image’ not supported’ error, causing the connection to break and re-establish, while also losing context

1 Like

Yeah this is a known limitation with Claude’s protocol - it can only handle text data right now, not images or binary data.

The only workaround would be to manually convert the binary data to a screenshot image, and attach it in the Composer request yourself, so the AI can see it!

I used playwright. It works better. This is the syntax which worked for me.

can u open amazon.com , and take screenshot using playwright. add full path of current folder to save it. dont save/read any binary data in composer/chat window.

If i don’t give it download folder - it tried to access downloads and crashes claude.
If I only give download folder (say current folder), - it saves screenshot and crashes claude
if I give full prompt, it works without crashing claude.

I added it to my rules and now its working fine.

1 Like