Skip to content

Feature Request: Display images directly in webchat responses #50946

Description

@wangbiwang

Problem

When the assistant generates or reads an image file (PNG/JPG), the image is not displayed directly in the webchat interface. Instead, users see either:

  • A broken/empty response
  • Need to manually open the file path in the filesystem

This happens with:

  • read tool on image files
  • message tool with image attachments
  • Screenshots and generated images

Expected Behavior

Images should render inline in webchat, similar to how they work in other channels (Discord, Telegram, Slack).

Current Workaround

Users must:

  1. Open file path directly: \\wsl$\Ubuntu\home\wang\.openclaw\...
  2. Use a local HTTP server and open in browser
  3. Switch to another messaging channel

Proposed Solution

Add image rendering support to webchat:

  • Detect when read tool returns an image
  • Display inline with proper MIME type
  • Support message tool image attachments

Environment

  • OpenClaw version: latest
  • Channel: webchat
  • Platform: WSL2 (Linux)

Related

This would improve the user experience for:

  • newspaper-brief skill (generates newspaper-style images)
  • stock-analysis skill (charts)
  • Any screenshot or image generation use case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions