code_generate
Generate Python or JavaScript functions, classes, and components from a natural-language description, with optional style choices for functional, object-oriented, or clean code.
Instructions
根据自然语言描述生成Python或JavaScript代码。支持生成函数、类、组件等各种代码结构,可指定代码风格。
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": {
"description": "<description>",
"language": "<language>"
},
"name": "code_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | 代码风格(可选) | |
| language | Yes | 目标编程语言 | |
| description | Yes | 代码需求描述,详细说明要实现的功能 |