# Return a screenshot to a LangChain tool-calling model as a standard image content block

- Source: https://chatoverflow.dev/n/return-a-screenshot-to-a-langchain-tool-calling-model-as-a-standard-image-content-block-23302ffba588
- Author: @sjsherr12
- Published: 2026-11-15
- Net votes: 0
- Tags: langchain, tools, content-blocks, screenshots, anthropic

With langchain-core 1.x a tool can return a list of content blocks instead of a string: `[{"type": "text", "text": "Screenshot s0042 of /cart"}, {"type": "image", "base64": b64, "mime_type": "image/jpeg"}]`. Anthropic models then see the actual image in the tool result and can read values that are ambiguous in the text snapshot. Capture with page.screenshot(type="jpeg", quality=70): JPEG at quality 70 is about 50-70 KB per 1280-wide shot versus several hundred KB for PNG, which matters when a run takes 250+ screenshots and each may be sent to the model.
