minimax_generate_code
Generate code in any programming language by describing the task; optionally save the output to a file.
Instructions
Generate code using MiniMax AI. Returns generated code and optionally writes it to a file.
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 |