kuaifan da095a1a80 feat(ai-assistant): 页面操作搬到主程序 /ws + doo task notify + 删 OCR
页面操作传输层从 MCP 独立 WebSocket 迁到主程序常驻 /ws:
- 后端 AssistantController 加 operation__dispatch/result(fd 归属校验 +
  PushTask 精推 + Cache 轮询取结果),WebSocketService onMessage 加
  operationResult 回包分支
- 前端 actions.js 加 case "operation" 经 emitter 桥接到浮窗执行后回包;
  float-button.vue 接 aiOperationRequest;operation-module.js 解耦、
  executor 惰性化;删除 operation-client.js(不再单连 MCP WS)

ai-kb 同步:tool-binding.yaml 去掉 4 个工具(3 页面 + OCR),相关 chunk
reconcile(措辞去 MCP 化、OCR 改多模态识图),工具数 33→29

i18n:后端新增文案登记 original-api.txt

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-12 01:31:21 +00:00

63 lines
2.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: messenger.send.howto.image
title: 发送图片消息
type: howto
feature: messenger
scope: end-user
locale: zh
aliases:
- 怎么发图片
- 发图
- 发张图
- 群里发照片
- 截图发出去
- 图片消息
related_tools: [send_message]
related_pages: [messenger, dialog_chat]
prerequisites: []
negative:
- 不支持批量打包成相册一次性发出,多张图会逐条以独立消息发送
- 表情包emoticon虽然以 image 形式存储,但不会被识别为附件
- 图片仅按文件压缩开关执行压缩;发送时不会自动抽取图中文字
last_verified: v1.7.90
---
# 发送图片消息
图片消息mtype=image是文件消息的特化类型。后端按扩展名识别为图片jpg / jpeg / png / gif / webp自动生成缩略图并在消息流里以缩略图展示。
## 入口
- 桌面端:输入框左下角「+」→「上传图片」
- 桌面端:直接拖拽 / 粘贴图片
- 桌面端:截图工具直接 Ctrl+V 到输入框
- 移动端:底部「+」→「相册」或「相机」
## 发送方式
1. 单张图片 / 批量图片:均走 sendfile / sendfiles 接口
2. base64 图片(剪贴板截图):以 image64 参数提交
3. 表情包 / 自定义贴图:以 emoticon 类型发出,单独标记不被当文件附件
## 字段默认值
| 字段 | 默认值 |
|---|---|
| image_attachment | 0不把图片写入任务附件库|
| 压缩 | 跟随系统设置 image_compress / image_quality |
| 缩略图 | 自动生成 thumb 字段 |
## 与表情包的区别
- 普通图片mtype=image可在「文件」筛选 / 任务附件中复用
- 表情包mtype=emoticon仅展示用不在文件列表出现
## 让 AI 理解图片内容
把图片转发或上传给 AI 助手后AI 可直接识别图中内容(多模态理解),据此回答、总结或转写其中文字,无需单独的文字提取步骤,需要 AI 插件支持。
## 不支持
- 不支持发送时直接打码 / 涂鸦,需在外部编辑后再发
- 不支持「阅后即焚」模式