generate-code
Generates code from a natural-language task description; optionally specify language, framework, model, or constraints to tailor the output.
Instructions
Generates code based on a natural language description of the task
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>"
},
"name": "generate-code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The coding task to perform (e.g., 'create a React component', 'write a Python function to sort a list') | |
| model | No | Optional model to use (e.g., 'qwen-turbo'). If not specified, uses the default model (qwen-plus). | |
| language | No | Programming language to use (e.g., 'python', 'javascript', 'java', 'cpp'). If not specified, Qwen will choose the most appropriate language. | |
| framework | No | Framework or library to use (e.g., 'React', 'Vue', 'Django', 'Express') | |
| requirements | No | Specific requirements or constraints for the code |