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

MiniMax令牌规划工具

技能标识:minimax-token-plan-tool

A lightweight MiniMax Token Plan Tool skill that directly calls official MCP APIs using pure JavaScript. No external MCP servers. No subprocess invocation. Designed for minimal overhead and fast integration within OpenClaw.

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

MiniMax令牌规划工具

MiniMax Token Plan 工具

需要Token Plan API密钥
订阅地址:MiniMax Token Plan(中国大陆) 或 MiniMax Token Plan(全球)

一个轻量级的MiniMax Token Plan工具技能,使用纯JavaScript直接调用官方API。无需外部MCP服务器。

专为最小开销和快速集成到OpenClaw中而设计。



功能特性

本技能提供MiniMax Token Plan的三项原生能力:

1. minimaxwebsearch

由MiniMax Token Plan API驱动的网络搜索。

2. minimaxunderstandimage

通过MiniMax VLM实现的视觉语言图像理解。

3. minimaxtokenplan_remains

查询剩余的Token Plan使用量和配额信息。



架构设计

  • * 纯JavaScript实现
  • 直接HTTPS API调用
  • 无需MCP服务器运行时
  • 无外部工具依赖
  • 极低资源占用

配置说明

默认建议:将MINIMAXAPIKEY和MINIMAXAPIHOST放入~/.openclaw/.env文件中。

bash

~/.openclaw/.env


MINIMAXAPIKEY=sk-your-key

中国大陆

MINIMAXAPIHOST=https://api.minimaxi.com

或全球

MINIMAXAPIHOST=https://api.minimax.io

OpenClaw可以加载这些值作为此技能的默认环境变量。
如果更新了~/.openclaw/.env,请重启OpenClaw或网关进程以确保新值被立即生效。
仅支持这两个官方主机地址。

请为所选主机使用匹配的Token Plan密钥:

可选API主机

bash

中国大陆


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

或全球

export MINIMAXAPIHOST=https://api.minimax.io

仅接受https://api.minimaxi.com和https://api.minimax.io。
如果未设置MINIMAXAPIHOST,脚本默认使用https://api.minimaxi.com。



工具发现

使用环境变量MINIMAXAPIKEY和可选的MINIMAXAPIHOST执行minimaxtokenplan_tool.js,以动态注册这些工具:

node minimaxtokenplan_tool.js tools

输出格式:

{
tools: [
{
name: minimaxwebsearch,
description: ...,
inputSchema: { ... }
},
{
name: minimaxunderstandimage,
description: ...,
inputSchema: { ... }
},
{
name: minimaxtokenplan_remains,
description: ...,
inputSchema: { ... }
}
]
}



工具1 - minimaxwebsearch

用途

使用MiniMax Token Plan搜索API进行实时网络搜索。

CLI调用

node minimaxtokenplantool.js websearch

示例:

node minimaxtokenplantool.js websearch OpenAI GPT-5 发布日期

输入模式

{
query: string
}

输出格式

成功:

{
success: true,
query: ...,
results: [
{
title: ...,
link: ...,
snippet: ...,
date: ...
}
],
related_searches: []
}

错误:

{
error: error message
}

工具2 - minimaxunderstandimage

用途

使用MiniMax Token Plan VLM API进行图像理解。
仅支持主流图像格式(例如:JPEG/JPG、PNG、WebP和GIF)。

支持:

  • * HTTP/HTTPS图像URL
  • 本地文件路径
  • @localfile.jpg简写形式

本地文件会自动转换为base64数据URL。
远程图像URL由本工具获取,然后转换为数据URL后再发送给MiniMax API。
远程图像获取仅限于公共HTTP/HTTPS目标,拒绝localhost、私有网络地址、不支持的端口和过多的重定向。

安全提示

本工具需要出站网络访问。
如果提供了本地图像,其内容将被传输到远程MiniMax API进行处理,这带来了本地图像数据泄露的潜在风险。
除非您完全接受此风险,否则请勿提交敏感、私密或受监管的图像。

CLI调用

node minimaxtokenplantool.js understandimage

示例:

远程图像:

node minimaxtokenplantool.js understandimage https://example.com/image.jpg 描述这张图片

本地图像:

node minimaxtokenplantool.js understandimage ./photo.png 可以看到哪些物体?

使用@前缀:

node minimaxtokenplantool.js understandimage @photo.png 总结场景

输入模式

{
image_source: string,
prompt: string
}

输出格式

成功:

{
success: true,
prompt: ...,
image_source: ...,
analysis: model response
}

错误:

{
error: error message
}

工具3 - minimaxtokenplan_remains

用途

通过MiniMax开放平台的剩余量端点查询剩余的Token Plan使用量。

CLI调用

node minimaxtokenplan_tool.js remains

输入模式

{}

输出格式

成功:

{
success: true,
remains: {
...: provider response
}
}

错误:

{
error: error message
}

注意:

  • - 所有时间均为UTC+0时区。请根据用户所在地区进行转换。
  • 对于所有模型,MiniMax-M使用5小时周期。其他生成模型使用1天周期。
  • remainstime和weeklyremainstime的格式为DD:HH:MM:SS。
  • quota = 0表示当前Token Plan订阅不包含该模型。



官方推荐

本技能是基于官方MiniMax API构建的轻量级JavaScript实现。
为获得最佳兼容性和长期支持,推荐使用官方MCP:
MiniMax-Coding-Plan-MCP。

对于语音合成、图像生成和视频生成,推荐使用官方技能:
Minimax-Multimodal-Toolkit。

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 minimax-token-plan-tool-1776275471 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 minimax-token-plan-tool-1776275471 技能

通过命令行安装

skillhub install minimax-token-plan-tool-1776275471

下载

⬇ 下载 minimax-token-plan-tool v1.1.5(免费)

文件大小: 7.83 KB | 发布时间: 2026-4-16 17:21

v1.1.5 最新 2026-4-16 17:21
minimax-token-plan-tool 1.1.5

- Updated SKILL.md to clarify quota time fields
返回顶部