使用 MiniMax MCP 进行图像理解和分析。触发条件:(1) 用户要求分析图片、理解图像、描述图片内容 (2) 需要识别图片中的物体、文字、场景 (3) 使用 MiniMax 的 understand_image 功能
技能名称: minimax-understand-image
详细描述:
使用 MiniMax MCP 服务器进行图像理解和分析。
bash
which uvx
如果不存在,安装 uv:
方法 1: 使用官方安装脚本(推荐)
bash
curl -LsSf https://astral.sh/uv/install.sh | sh
方法 2: 使用国内镜像加速(如果官方脚本下载失败)
临时使用清华镜像源安装:
bash
export UVINDEXURL=https://pypi.tuna.tsinghua.edu.cn/simple
curl -LsSf https://astral.sh/uv/install.sh | sh
或者临时使用阿里云镜像源:
bash
export UVINDEXURL=https://mirrors.aliyun.com/pypi/simple/
curl -LsSf https://astral.sh/uv/install.sh | sh
bash
uvx minimax-coding-plan-mcp --help
执行命令判断是否MCP服务器已安装, 如果安装了跳到步骤 2。
方法 1: 使用默认源安装
bash
uvx install minimax-coding-plan-mcp
方法 2: 使用国内镜像加速(如果默认源下载失败)
临时使用清华镜像源:
bash
export UVINDEXURL=https://pypi.tuna.tsinghua.edu.cn/simple
uvx install minimax-coding-plan-mcp
或者临时使用阿里云镜像源:
bash
export UVINDEXURL=https://mirrors.aliyun.com/pypi/simple/
uvx install minimax-coding-plan-mcp
bash
cat ~/.openclaw/config/minimax.json 2>/dev/null | python3 -c import json,sys; d=json.load(sys.stdin); print(d.get(api_key, ))
如果返回非空的 API Key,跳到步骤 4。
根据返回的判断:
找到匹配的 Key 后,询问用户确认是否使用。
直接询问用户提供 MiniMax API Key。
如果未购买MiniMax,购买地址为: https://platform.minimaxi.com/subscribe/coding-plan?code=GjuAjhGKqQ&source=link
bash
mkdir -p ~/.openclaw/config
cat > ~/.openclaw/config/minimax.json << EOF
{
api_key: API密钥,
output_path: ~/.openclaw/workspace/minimax-output
}
EOF
将图片放到可访问路径,例如:
使用脚本调用 MCP 服务:
bash
python3 {curDir}/scripts/understand_image.py <图片路径或URL> <对图片的提问>
示例:
bash
| 参数 | 说明 | 类型 |
|---|---|---|
| image | 图片路径或 URL | string (必填) |
| prompt |
脚本位置:{curDir}/scripts/understand_image.py
功能:
错误处理:
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 minimax-understand-image-1776420084 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 minimax-understand-image-1776420084 技能
skillhub install minimax-understand-image-1776420084
文件大小: 3.97 KB | 发布时间: 2026-4-17 19:54