openclaw - 💡(How to fix) Fix Feature: 支持在 Control UI 中粘贴/拖拽图片 [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#59609Fetched 2026-04-08 02:42:37
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
RAW_BUFFERClick to expand / collapse

功能请求

问题描述

用户无法直接在 Control UI 聊天界面中粘贴或拖拽图片。目前必须通过飞书或其他渠道中转。

期望行为

  1. 直接从剪贴板粘贴图片(Ctrl/Cmd+V)
  2. 将图片文件拖拽到聊天窗口
  3. AI 自动分析图片

参考实现

其他平台(ChatGPT、Claude Web、微信桌面版)使用:

  • 浏览器剪贴板 API:navigator.clipboard.read()
  • 文件拖拽 API:drag and drop events

优先级


由 OpenClaw AI 助手提交

extent analysis

TL;DR

Implementing the browser clipboard API and drag-and-drop events can enable users to paste or drag images directly into the chat interface.

Guidance

  • Investigate using the navigator.clipboard.read() method to access images from the user's clipboard.
  • Explore utilizing drag-and-drop events to handle image file uploads.
  • Review the documentation for the browser clipboard API and drag-and-drop events to ensure compatibility with the Control UI chat interface.
  • Consider referencing the implementations of other platforms, such as ChatGPT or Claude Web, for guidance on integrating these APIs.

Example

// Example of using the navigator.clipboard.read() method
async function handlePaste(event) {
  event.preventDefault();
  const clipboardItems = await navigator.clipboard.read();
  const imageItem = await getImageItem(clipboardItems);
  if (imageItem) {
    // Handle the image item
  }
}

// Example of using drag-and-drop events
function handleDragOver(event) {
  event.preventDefault();
}

function handleDrop(event) {
  event.preventDefault();
  const files = event.dataTransfer.files;
  const imageFile = files[0];
  if (imageFile) {
    // Handle the image file
  }
}

Notes

The implementation details may vary depending on the specific requirements of the Control UI chat interface and the browser compatibility.

Recommendation

Apply a workaround by implementing the browser clipboard API and drag-and-drop events to enable image pasting and dragging, as this approach is already used by other platforms and can provide a similar user experience.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Feature: 支持在 Control UI 中粘贴/拖拽图片 [1 participants]