minimax_generate_code
Describe a coding task in any programming language to generate code using MiniMax AI. The result can be written directly to a file.
Instructions
Generate code using MiniMax AI. Returns generated code and optionally writes it to a file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>",
"language": "<language>"
},
"name": "minimax_generate_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Description of the code to generate | |
| language | Yes | Programming language (e.g., typescript, python, go) | |
| filePath | No | If provided, write generated code to this file path | |
| model | No | Model override (default: MINIMAX_DEFAULT_MODEL env var, typically M2.7) | |
| context | No | Additional context about the codebase or requirements |