MiniMax key: Pi model registry provider minimax; fallback env MINIMAX_API_KEY.
MiniMax base URL: model registry providers minimax, minimax-cn; fallback env MINIMAX_API_HOST.
Behavior
web_fetch uses native fetch with browser-like headers and a per-host referer.
Content routing is based on Content-Type:
HTML/XHTML: strips common prompt-injection delivery vectors, extracts main content, converts with pandoc and llm-extract.lua.
Text/XML/YAML/CSV/TSV: returns UTF-8 text.
JSON: pretty-prints when parseable, otherwise returns raw text.
PDF: writes temp file, runs pdftotext -layout.
DOCX/ODT/EPUB/RTF: writes temp file, runs pandoc to plain text.
Images: writes temp file, returns metadata from identify, plus inline image content.
Audio/video: writes temp file, returns summary and ffprobe JSON.
Other binary: writes temp file and returns path plus content type.
HTML cleanup removes comments, scripts, styles, iframes, objects, templates, noscript blocks, embeds, hidden inputs, long meta content, hidden/visually-hidden elements, and non-image aria-label/alt/title attrs.
Main-content extraction prefers <article>, #mw-content-text, #docContent, #content, <main>, then role="main"; fallback is full page.
Fetched and searched text returned to the model is wrapped as untrusted external data.
web_search provider order: Z.AI Coding Plan MCP when configured, then MiniMax search when configured, then DuckDuckGo HTML.
DuckDuckGo fallback throttles requests to at least 2 seconds apart and reports captcha/dedup diagnostics.
understand_image sends the prompt and image data to MiniMax VLM. It accepts HTTP/HTTPS URLs, data URLs, and local files. Local file data is base64 encoded before the request.