minimax-image-understand
About minimax-image-understand
minimax-image-understand is an image-understanding skill for OpenClaw that analyzes submitted images through MiniMax MCP. It accepts an image path or URL and an optional prompt; the README says it is not intended for Claude Code.
Key features
- 01Understand images through MiniMax MCP
- 02Accept image paths or URLs
- 03Support an optional prompt
- 04Provide a Python function interface
Use cases
- 01Describe images submitted by users
- 02Identify content in an image
- 03Analyze an image using a prompt
MCP support
The skill uses MiniMax MCP for image understanding and calls it through the MCP Python client library. It is intended for OpenClaw.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ cat-xierluo/ legal-skills --skill minimax-image-understandAfter installing, type/minimax-image-understandin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
CHANGELOG.mdscripts/.env.exampleimage_understand.pyDetails
From the project READMEMiniMax MCP 图像理解
重要提示:本技能适用于 OpenClaw 平台。如果你使用的是 Claude Code,请忽略此技能。
通过 MiniMax MCP 进行图像理解。
触发条件
用户发送图片并要求分析、描述、识别时使用。
依赖
系统依赖
| 依赖 | 安装方式 |
|---|---|
| Python 3.10+ | macOS:brew install python3<br>Linux: sudo apt-get install python3 |
Python 包
| 包名 | 用途 | 安装命令 |
|---|---|---|
mcp | MCP 客户端库 | pip install mcp |
前置要求
- 安装依赖:
pip install mcp - 配置环境变量:复制
.env.example为.env并填入 API Key
使用方法
cd ~/.openclaw/skills/minimax-image-understand/scripts
source .env
python3 image_understand.py <图片路径或URL> [提示词]
代码中调用
import sys
import os
sys.path.insert(0, "~/.openclaw/skills/minimax-image-understand/scripts")
os.environ["MINIMAX_API_KEY"] = "your-key" # 或从 .env 加载
from image_understand import understand_image
result = await understand_image("image.jpg", "描述这张图片")
图片路径
图片保存位置:~/.openclaw/media/inbound/,文件名格式:{uuid}.jpg
Hermes Agent 环境说明
本 skill 在 OpenClaw 环境下可用,在 Hermes Agent 中不可用,原因:
MINIMAX_API_KEY未注入到 Hermes Agent 的 shell 环境变量- 系统 Python 为 3.9.6,
mcp包需 Python 3.10+(可用uv run --python 3.12 --with mcp绕过) - 图像分析在 Hermes 中会失败,需改用文字描述或 OpenClaw 协助读图
配置文件
.env 文件已放在 scripts/ 目录下,格式:
MINIMAX_API_KEY=your-api-key