review_code
Review code by generating a comprehensive analysis and scoring prompt. Provide code text and optionally choose a review style or include a commit message for targeted feedback.
Instructions
构建用于代码整体审查与打分的 LLM 提示词(不直接调用 LLM)
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": {
"code": "<code>"
},
"name": "review_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 待审查的代码文本 | |
| style | No | 审查风格,可选 | |
| commitMessage | No | 可选的提交信息 |