run_metric_analysis
Run metric analysis on source code or AST to detect code smells and save results.
Instructions
CodeVi backend에 metric analysis 실행을 요청하고 결과를 저장한다.
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": {
"analysisType": "<analysisType>",
"sourceType": "<sourceType>"
},
"name": "run_metric_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| astData | No | sourceType=ast_json일 때 AST JSON | |
| filePath | No | 분석 대상 파일 경로 | |
| language | No | sourceType=source_code일 때 언어 | |
| sourceCode | No | sourceType=source_code일 때 소스 코드 | |
| sourceType | Yes | 입력 소스 형태 | |
| analysisType | Yes | 실행할 분석 종류 | |
| teamProjectId | No | CodeVi team project ID (생략 시 METRICS_DEFAULT_TEAM_PROJECT_ID 사용) |