MiniMax models' tool calls are stripped instead of executed
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
The report names stripMinimaxToolCallXml() in dist/image-BvuShkXY.js as the entry point. Read that function and trace how the anthropic-messages response is handled for the minimax-portal provider. Implement parsing and execution for the shown minimax:tool_call format; done means the example invoke is executed as a tool call instead of being stripped.
Written by the indexing model from the issue text.
Description
MiniMax models' tool calls are stripped instead of executed
MiniMax 在 anthropic-messages API 中返回工具调用时,使用 XML 文本格式而非标准的 tool_use 结构化块:
问题描述
MiniMax 在 anthropic-messages API 中返回工具调用时,使用 XML 文本格式而非标准的 tool_use 结构化块:
MiniMax 实际返回:
{
"content": [
{
"type": "text",
"text": "<minimax:tool_call>\n <invoke name=\"exec\">\n <parameter name=\"command\">ls</parameter>\n </invoke>\n</minimax:tool_call>"
}
]
}
OpenClaw 期望:
{
"content": [
{
"type": "tool_use",
"id": "toolu_xxx",
"name": "exec",
"input": {
"command": "ls"
}
}
]
}
<minimax:tool_call>
<invoke name="exec">
<parameter name="command">...</parameter>
</invoke>
</minimax:tool_call>
Currently, stripMinimaxToolCallXml() in dist/image-BvuShkXY.js removes these as "malformed" content instead of executing them.
Expected
Parse and execute minimax:tool_call blocks as valid tool invocations.
Config
- Provider: minimax-portal
- API: anthropic-messages
- Model: MiniMax-M2.5 / MiniMax-M2.5-highspeed
- Dominant language
- No language data
- Stars
- 588
- Forks
- 83
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MiniMax-AI/MiniMax-M2.5
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
MiniMax-AI/MiniMax-M2.5#41 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 48/100
MiniMax-AI/MiniMax-M2.5#39 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
MiniMax-AI/MiniMax-M2.5#38 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
MiniMax-AI/MiniMax-M2.5#37 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
MiniMax-AI/MiniMax-M2.5#36 · 3 comments ·
All issues in MiniMax-AI/MiniMax-M2.5
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
dsavransky/EXOSIMS#497 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
dginev/latexml-oxide#1132 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EricZimmerman/evtx#281 ·
-
bugfix
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 3 days
-
ClickHouse: quantile is read as the exact Quantile, though ClickHouse's quantile is approximateOpen
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day