首页龙虾技能列表 › MiniMax Token Plan Tool — 技能工具

\ud83e\ude99 MiniMax Token Plan Tool — 技能工具

v1.1.5

A lightweight MiniMax Token Plan Tool skill that directly calls official MCP APIs using pure JavaScript. No external MCP servers. No subprocess invocation. D...

0· 744·6 当前·6 累计
by @yorch233 (Yorch)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/12
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The skill's requested environment, binaries, and runtime behavior align with its stated purpose (calling MiniMax Token Plan APIs for search, image understanding, and quota queries); nothing in the files suggests hidden endpoints or unrelated credential access.
评估建议
This skill appears to implement exactly what it claims: a Node.js client for MiniMax Token Plan APIs. Before installing: 1) Only provide a Token Plan API key (not broader credentials), and prefer a key with limited scope; 2) Understand that local images submitted will be uploaded to MiniMax—do not send sensitive or regulated images; 3) MINIMAX_API_HOST is limited to the two official hosts per SKILL.md—verify you use the correct host for your token; 4) If you require higher assurance, review the ...
详细分析 ▾
用途与能力
The skill is a Node.js tool that directly calls MiniMax Token Plan APIs. It declares node and MINIMAX_API_KEY / MINIMAX_API_HOST, which are exactly what a direct-API implementation needs. There are no unrelated credentials, binaries, or configuration paths requested.
指令范围
SKILL.md and the JS implement the three documented tools (web_search, understand_image, remains). The instructions explicitly document how to run the node script, how local images are handled (converted to base64 and uploaded), and warn about outbound network/data-leak risk. The runtime actions (DNS resolution, HTTP(S) requests, file reads for local images) are consistent with the described features and do not reference or exfiltrate data to unexpected endpoints.
安装机制
There is no install spec; this is instruction-plus-script only. No code is downloaded from external URLs during install and no archives are extracted. This is the lowest-risk install model and matches the skill's stated 'pure JavaScript, no external server' claim.
凭证需求
Only MINIMAX_API_KEY (primary) and optional MINIMAX_API_HOST are required, which is proportionate for a direct API client. The code only reads these environment variables and does not request unrelated secrets or access to other services.
持久化与权限
The skill does not request always:true and has no install steps that modify other skills or system-wide settings. It runs as an invoked Node.js script and does not persist elevated privileges or auto-enable itself.
minimax_token_plan_tool.js:24
Environment variable access combined with network send.
minimax_token_plan_tool.js:386
File read combined with network send (possible exfiltration).
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.1.52026/3/4

minimax-token-plan-tool 1.1.5 - Updated SKILL.md to clarify quota time fields

● 无害

安装命令 点击复制

官方npx clawhub@latest install minimax-token-plan-tool
镜像加速npx clawhub@latest install minimax-token-plan-tool --registry https://cn.clawhub-mirror.com

技能文档

Requires a Token Plan API Key
Subscribe at: MInimax Token Plan (China Mainland) or MInimax Token Plan (Global)

A lightweight MiniMax Token Plan Tool skill that directly calls official APIs using pure JavaScript. No external MCP servers.

Designed for minimal overhead and fast integration within OpenClaw.


Features

This skill provides three native capabilities of MiniMax Token Plan:

1. minimax_web_search

Web search powered by MiniMax Token Plan API.

2. minimax_understand_image

Vision-language image understanding via MiniMax VLM.

3. minimax_token_plan_remains

Query remaining Token Plan usage and quota information.


Architecture

Pure JavaScript implementation Direct HTTPS API calls No MCP server runtime required No external tool dependency Minimal resource usage


Configuration

Default recommendation: put MINIMAX_API_KEY and MINIMAX_API_HOST in ~/.openclaw/.env.

# ~/.openclaw/.env
MINIMAX_API_KEY="sk-your-key"

# China Mainland MINIMAX_API_HOST="https://api.minimaxi.com"

# or Global MINIMAX_API_HOST="https://api.minimax.io"

OpenClaw can load these values as the default environment for this Skill. If you update ~/.openclaw/.env, restart OpenClaw or the gateway process if the new values are not picked up immediately. Only these two official hosts are supported.

Use a matching Token Plan key for the selected host:

China Mainland tokens: platform.minimaxi.com Global tokens: platform.minimax.io

Optional API Host

# China Mainland
export MINIMAX_API_HOST="https://api.minimaxi.com"

# or Global export MINIMAX_API_HOST="https://api.minimax.io"

Only https://api.minimaxi.com and https://api.minimax.io are accepted. If MINIMAX_API_HOST is not set, the script defaults to https://api.minimaxi.com.


# Tool Discovery

Execute minimax_token_plan_tool.js with environment variable MINIMAX_API_KEY and optional MINIMAX_API_HOST to dynamically register these tools:

node minimax_token_plan_tool.js tools

Output format:

{
  "tools": [
    {
      "name": "minimax_web_search",
      "description": "...",
      "inputSchema": { ... }
    },
    {
      "name": "minimax_understand_image",
      "description": "...",
      "inputSchema": { ... }
    },
    {
      "name": "minimax_token_plan_remains",
      "description": "...",
      "inputSchema": { ... }
    }
  ]
}

# Tool 1 - minimax_web_search

Purpose

Real-time web search using MiniMax Token Plan search API.

CLI Invocation

node minimax_token_plan_tool.js web_search ""

Example:

node minimax_token_plan_tool.js web_search "OpenAI GPT-5 release date"

Input Schema

{
  "query": "string"
}

Output Format

Success:

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

Error:

{
  "error": "error message"
}

# Tool 2 - minimax_understand_image

Purpose

Image understanding using MiniMax Token Plan VLM API. Only mainstream image formats are supported (for example: JPEG/JPG, PNG, WebP, and GIF).

Supports:

HTTP / HTTPS image URLs Local file paths @localfile.jpg shorthand

Local files are automatically converted to base64 data URLs. Remote image URLs are fetched by this tool and then converted to data URLs before being sent to the MiniMax API. Remote image fetching is restricted to public HTTP/HTTPS targets and rejects localhost, private-network addresses, unsupported ports, and excessive redirects.

Security Notice

This tool requires outbound network access. If a local image is provided, its content is transmitted to the remote MiniMax API for processing, which introduces a potential risk of local image data leakage. Do not submit sensitive, private, or regulated images unless you fully accept this risk.

CLI Invocation

node minimax_token_plan_tool.js understand_image  ""

Examples:

Remote image:

node minimax_token_plan_tool.js understand_image https://example.com/image.jpg "Describe this image"

Local image:

node minimax_token_plan_tool.js understand_image ./photo.png "What objects are visible?"

With @ prefix:

node minimax_token_plan_tool.js understand_image @photo.png "Summarize the scene"

Input Schema

{
  "image_source": "string",
  "prompt": "string"
}

Output Format

Success:

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

Error:

{
  "error": "error message"
}

# Tool 3 - minimax_token_plan_remains

Purpose

Query remaining Token Plan usage through the MiniMax open platform remains endpoint.

CLI Invocation

node minimax_token_plan_tool.js remains

Input Schema

{}

Output Format

Success:

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

Error:

{
  "error": "error message"
}
Note:
  • All times are in UTC+0. Convert them based on the user's local region.
  • For all models, MiniMax-M uses a 5-hour period. Other generative models use a 1-day period.
  • remains_time and weekly_remains_time are formatted as DD:HH:MM:SS.
  • _quota = 0 means the current Token Plan subscription does not include that model.

Official Recommendation

This Skill is a lightweight JavaScript implementation built on top of the official MiniMax APIs. For best compatibility and long-term support, the official MCP is recommended: MiniMax-Coding-Plan-MCP.

For speech synthesis, image generation, and video generation, the official Skill is recommended: Minimax-Multimodal-Toolkit.

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务