Vision Bridge 标志

Vision Bridge

社区
dujonwalker
vision-bridge

当智能体自身使用的模型无法查看图像时,通过 vision-bridge MCP 服务器(由 Gemini 提供支持)读取并理解图像,使用的工具包括 analyze_image 和 ocr_image。只要用户提及或附加图像文件(.png、.jpg、.jpeg、.webp、.gif、.heic、.heif),例如屏幕截图、错误对话框、终端截图、UI 原型图、示意图、白板照片、图表或扫描笔记,或者说“看看这张截图”“错误提示写了什么”“读出图片里的文字”“根据这个原型图制作”等,即使用户没有提到 OCR 或视觉能力,也请使用此技能。此技能不用于生成或编辑图像。

概览

发布者dujonwalker
代码仓库project-nova
技能名称vision-bridge
星标数
271
复刻数
33
附带文件
2
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 dujonwalker 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Vision Bridge AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/dujonwalker/project-nova/tree/main/mcp-skills/vision-bridge
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dujonwalker/project-nova.git /tmp/project-nova
mkdir -p .claude/skills
cp -r /tmp/project-nova/mcp-skills/vision-bridge .claude/skills/vision-bridge
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Vision Bridge,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Vision Bridge。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Vision Bridge 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Vision Bridge

A text-only model cannot see images. The vision-bridge MCP server fixes that by sending a local image to Gemini and returning text. What the tools return is your only view of the image, and it is a description written by a different model, so treat it as good but secondhand evidence.

Step 0: decide whether you need it

  • If your own model can already see the image (it is in your context), just look at it. Do not make a round trip for nothing.
  • If you only have a file path, or you cannot see the image, use the tools below.
  • The tools may be exposed with the server name as a prefix (for example vision-bridge_analyze_image), depending on the client.
  • If neither tool is available, the server is not connected. Read references/setup.md, tell the user what is missing, and stop. Do not guess at image contents.

Step 1: pick the tool

NeedTool
Exact text: error messages, stack traces, terminal output, code, config, serial numbersocr_image (takes only image_path; returns just the text, no commentary)
Anything else: what a UI looks like, diagram structure, chart data, what is wrong in a screenshotanalyze_image (takes image_path and an optional prompt)

When an image has both verbatim text that matters and visual structure that matters (a screenshot of a failing page, say), call both. Use ocr_image for the precise strings and analyze_image with a targeted prompt for layout and context.

Step 2: call it well

Paths. Prefer absolute paths. Relative paths resolve against the directory the MCP server was started in, which is usually where the agent was launched but not always. If you get FILE_NOT_FOUND, the error message shows the absolute path it tried, so use that to see what went wrong and retry with an absolute path.

Local files only. The tools cannot take URLs, clipboard contents, base64, SVG, BMP, TIFF, or PDFs. Format is detected from the file extension only. Convert first, then call:

  • URL: download it to a temp file (curl -L -o /tmp/img.png <url>)
  • Unsupported format: convert to PNG (ImageMagick magick in.bmp out.png, macOS sips -s format png in.bmp --out out.png, or Pillow)
  • PDF page: render it (pdftoppm -png -r 150 -f 1 -l 1 in.pdf /tmp/page)

One image per call. For several images, call once per image, then combine the results yourself.

Size. Files over 20MB are rejected by default. Downscale the image rather than asking the user to raise the limit.

Write a specific prompt for analyze_image. The built-in default is a generic "describe this for a developer" prompt. It works, but a prompt tied to the user's actual goal gets you the detail you need in one call instead of two. Say what you need to know and what shape you want it in. Each call is a network round trip against a rate-limited free quota, so ask for everything you need at once.

  • Debugging: "Transcribe the error message and stack trace exactly. Then describe what the app was doing and which UI state is visible."
  • Mockup to code: "List every UI element top to bottom with its label, position in the layout, and any visible state. Estimate colors as hex values."
  • Diagram: "List every node and every connection as 'A -> B (label)'. Note anything that looks like a decision point."

More recipes by image type are in references/prompt-recipes.md. Read it when the image is a chart, a table, a mockup, or a photo of handwriting.

Step 3: treat the result as evidence, not ground truth

  • Verify what you can. If the output contains an error string, grep the codebase for it. If it contains code, run or lint it. Vision models confuse l/1/I and O/0 and sometimes drop a line.
  • Do not state measurements as fact. Colors, pixel sizes, and spacing are estimates. Say "approximately" or ask the user for the real values from the design file.
  • Ask a follow-up when something critical is unclear. If the whole task hinges on one number, path, or label, run a second narrow analyze_image or ocr_image call on it instead of building on a guess.
  • Be honest about gaps. If the description seems incomplete or contradicts itself, say so. Do not fill the gaps with plausible details.
  • Say where the information came from. Note in your answer that you read the image through the vision tool, so the user knows to double-check anything surprising.

Privacy

The image is uploaded to Google's Gemini API. If the user says the image is sensitive (credentials, customer data, private documents) or the filename suggests it, confirm they are comfortable with that before calling. If secrets show up in the output (API keys, tokens, passwords), do not copy them into files, commits, or logs, and flag them to the user.

When a call fails

Failures come back as isError: true with a message shaped like [CODE] explanation. Fix the cause and retry at most once. Do not loop.

CodeMeaningWhat to do
MISSING_API_KEYGEMINI_API_KEY is not set for the serverTell the user to set it (see references/setup.md). Never ask them to paste the key into chat. This check runs before path validation, so it can mask other errors.
FILE_NOT_FOUNDPath does not existCheck the absolute path shown in the message; retry with the correct absolute path
NOT_A_FILEPath is a directoryLocate the actual image file inside it
UNSUPPORTED_TYPEExtension not in the supported listConvert to PNG, then retry
FILE_TOO_LARGEOver the size limitDownscale or compress, then retry
READ_ERRORUnreadable or empty fileConfirm the file is not empty or corrupted and that permissions allow reading
API_ERRORGemini rejected the request (bad key, quota, retired model, network)Read the message; see references/setup.md for key, quota, and GEMINI_MODEL issues
EMPTY_RESPONSEGemini returned nothing, often a safety filterRetry with a different prompt or a cropped image; if it persists, tell the user

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Vision Bridge AI 技能有什么作用?

当智能体自身使用的模型无法查看图像时,通过 vision-bridge MCP 服务器(由 Gemini 提供支持)读取并理解图像,使用的工具包括 analyze_image 和 ocr_image。只要用户提及或附加图像文件(.png、.jpg、.jpeg、.webp、.gif、.heic、.heif),例如屏幕截图、错误对话框、终端截图、UI 原型图、示意图、白板照片、图表或扫描笔记,或者说“看看这张截图”“错误提示写了什么”“读出图片里的文字”“根据这个原型图制作”等,即使用户没有提到 OCR 或视觉能力,也请使用此技能。此技能不用于生成或编辑图像。

为什么在 TypingMind 中使用 Vision Bridge?

因为您只需安装一次,就能搭配任何模型使用。Vision Bridge 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Vision Bridge?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/dujonwalker/project-nova/tree/main/mcp-skills/vision-bridge。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Vision Bridge?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Vision Bridge 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Vision Bridge 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Vision Bridge AI 技能免费吗?

dujonwalker 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇