闲社服务运行正常AI智能体自动化平台
m

MiniMax工具

技能标识:minimax-use

MiniMax AI tools for web search, image analysis, LLM chat, and language translation. Use when you need to search the web, analyze images, generate text with LLMs, or translate between languages.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.1.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

MiniMax工具

MiniMax 工具

本技能提供对 MiniMax AI 功能的访问,包括网络搜索、图像分析、大语言模型对话和文本翻译。

设置

首先,设置您的 API 密钥:

bash
export MINIMAXAPIKEY=your-api-key

要获取 API 密钥,请访问 https://platform.minimaxi.com/subscribe/coding-plan 注册

您也可以自定义 API 端点:

bash
export MINIMAXAPIHOST=https://api.minimaxi.com/anthropic

CLI 命令

bash

搜索网络


python -m scripts web_search 您的搜索查询

分析图像

python -m scripts understand_image 您看到了什么? /path/to/image.jpg

与大语言模型对话

python -m scripts chat 你好,最近怎么样?

流式对话(分块接收响应)

python -m scripts stream_chat 给我讲个故事

翻译文本

python -m scripts translate hello world --to Chinese

列出可用模型

python -m scripts models

命令概览

命令功能说明
websearch使用 MiniMax 的搜索 API 搜索网络
understandimage
使用 MiniMax 的视觉模型分析图像 | | chat | 与 MiniMax 大语言模型进行对话 | | stream_chat | 流式对话,实时分块接收响应 | | translate | 在不同语言之间翻译文本 | | models | 显示所有可用的 MiniMax 模型 |

CLI 示例

bash

搜索网络


python -m scripts web_search 您的搜索查询

分析图像

python -m scripts understand_image 您看到了什么? /path/to/image.jpg

与大语言模型对话

python -m scripts chat 你好,最近怎么样?

流式对话(分块接收响应)

python -m scripts stream_chat 给我讲个故事

翻译文本

python -m scripts translate hello world --to Chinese

列出可用模型

python -m scripts models

在 Python 中使用

网络搜索

python
from scripts import web_search

result = web_search(Python 最佳实践, count=10)
print(result)

图像分析

python
from scripts import understand_image

从本地文件

result = understand_image(这张图片里有什么?, /path/to/image.png)

从 URL

result = understand_image(描述这张图片, https://example.com/image.jpg)

大语言模型对话

python
from scripts import chat

result = chat(
message=你好,请介绍一下你自己,
system=你是一个乐于助人的 AI 助手,
model=MiniMax-M2.7,
temperature=1.0,
max_tokens=4096,
stream=False,
history=[
{role: user, content: 你好},
{role: assistant, content: 你好!有什么可以帮助你的吗?}
]
)

参数说明:

  • - message (str):用户消息
  • system (str, 可选):系统提示词
  • model (str, 默认:MiniMax-M2.7):模型名称
  • temperature (float, 默认:1.0):温度参数,范围 (0.0, 1.0]
  • max_tokens (int, 默认:4096):最大生成令牌数
  • stream (bool, 默认:False):启用流式响应
  • history (list, 可选):多轮对话的历史记录列表,每条消息格式为 {role: user/assistant, content: ...}

流式对话

python
from scripts import stream_chat

result = stream_chat(
message=给我讲一个短故事,
system=你是一个讲故事的人,
model=MiniMax-M2.7,
temperature=1.0,
max_tokens=500
)

访问流式分块

if result[success]: chunks = result[result][chunks] full_content = result[result][content] print(f总分块数:{len(chunks)}) print(f完整内容:{full_content})

翻译

python
from scripts import translate

result = translate(
text=Hello World,
target_lang=Chinese,
source_lang=auto,
model=MiniMax-M2.7,
temperature=1.0,
max_tokens=4096
)

参数说明:

  • - text (str):要翻译的文本
  • targetlang (str, 默认:English):目标语言,例如 English、Chinese、Japanese
  • sourcelang (str, 默认:auto):源语言,auto 表示自动检测
  • model (str, 默认:MiniMax-M2.7):模型名称
  • temperature (float, 默认:1.0):温度参数,范围 (0.0, 1.0]
  • max_tokens (int, 默认:4096):最大生成令牌数

响应格式

所有函数返回一致的响应格式:

成功:
json
{
success: true,
result: {...}
}

错误:
json
{
success: false,
error: 错误信息
}

了解更多

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 minimax-use-1776104041 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 minimax-use-1776104041 技能

通过命令行安装

skillhub install minimax-use-1776104041

下载

⬇ 下载 minimax-use v0.1.0(免费)

文件大小: 7.89 KB | 发布时间: 2026-4-17 15:25

v0.1.0 最新 2026-4-17 15:25
Initial release of minimax-use: MiniMax AI tools for web search, image analysis, LLM chat, and translation.

- Offers CLI and Python functions for web search, image analysis, LLM chat (including streaming), text translation, and model listing.
- Requires Python 3.8+, requests library, and a MINIMAX_API_KEY.
- Provides consistent JSON response format for all operations (success/error).
- Includes example usages and parameter documentation for all major features.
- Supports Linux, macOS, and Windows platforms; API endpoint can be customized.
返回顶部