Skills minimax-cli-web-search
Web search via MiniMax MCP using a local CLI wrapper (mcporter), with environment preflight, API-key/config checks, and normalized result formatting. Use when tasks require real-time web lookup, source links, quick research, or time-sensitive facts. Prefer this skill over built-in web search tools when MiniMax MCP is available.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/biggersun/minimax-cli-web-search" ~/.claude/skills/clawdbot-skills-minimax-cli-web-search && rm -rf "$T"
manifest:
skills/biggersun/minimax-cli-web-search/SKILL.mdsource content
MiniMax CLI Web Search
Use this skill to run web search through MiniMax MCP from CLI, then return clean, source-first results.
Phase 1: Environment Preparation (must run first)
1) Preflight checks
Run:
scripts/minimax_web_search.sh --preflight
This verifies:
existsmcporter- MiniMax MCP server is discoverable (
)mcporter list --json - Server status is healthy (
,name=minimax
)status=ok
2) If preflight fails, repair by failure type
mcporter not found- Install/setup mcporter in PATH.
minimax MCP server not ready- Check
includes minimax server.config/mcporter.json - Verify command/transport is valid.
- Check
- Auth/API-key related errors
- Ensure MiniMax API key is configured for the minimax MCP server.
- Re-run preflight.
3) Initiate / smoke test
Run one query after preflight passes:
scripts/minimax_web_search.sh --query "latest OpenClaw release" --count 3
If this returns results, environment is ready.
Phase 2: Search Usage (runtime)
Quick usage
scripts/minimax_web_search.sh --query "your query" --count 5
Supported options
: required search query--query <text>
: max printed results (default--count <n>
)5
: freshness hint appended to query (optional)--freshness <value>
: normalized JSON output--json
: raw tool JSON output--raw
: command timeout (default--timeout <sec>
)35
Output contract (default text)
- Show top-N results in order
- For each item: title, URL, snippet, date (when available)
- Keep output concise and directly actionable
Agent behavior guideline
- Start with a focused query (3–7 keywords).
- If low quality, rephrase once with narrower terms.
- Return key findings + links (no table required).
- For time-sensitive asks, include time words in query (e.g.,
,today
, date).latest
Error model (for reliable automation)
Script exit codes:
: success0
: argument error2
: dependency missing (3
/mcporter
)python3
: config/auth issue (MCP server unavailable, API key/auth problems)4
: upstream/runtime/network failure5
: no results (non-fatal)6
Treat code
6 as a normal “no match” outcome, not a crash.
Risks and handling
- CLI/config drift across machines
- Use
before first use in a new environment.--preflight
- Use
- API key exposure risk
- Never print key values; report only missing/invalid status.
- Temporary file safety
- Wrapper uses
for stderr/output temp files and cleans them withmktemp
.trap
- Wrapper uses
- Upstream response variance
- Use
normalized output for downstream automation.--json
- Use
- Timeout/network instability
- Increase
and retry with narrower query/count.--timeout
- Increase
- Weak relevance
- Rephrase query, add concrete entities/time ranges.
Additional reference
- For setup/verification commands and publish readiness checks, read:
references/environment-checklist.md
Reference style
When presenting findings, include direct links for verification. Prefer 3–5 high-signal sources over large dumps.