validate_code_standards
Check code snippets for compliance with M8 development standards, providing issue lists and modification suggestions for Vue, SCSS, JavaScript, TypeScript, mock data, and router files.
Instructions
验证给定的代码片段是否符合 M8 开发规范,返回不符合规范的问题列表和修改建议。
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>",
"file_type": "<file_type>"
},
"name": "validate_code_standards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | 需要验证的代码内容 | |
| file_type | Yes | 文件类型 | |
| vue_version | No | Vue 版本,默认 3 |