code_metrics
Analyze code metrics for any file, including line count and basic complexity. Provide a file path to get these metrics; set allow_external_access to analyze files outside the project root.
Instructions
Phân tích chỉ số code (Số dòng, độ phức tạp cơ bản).
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": {
"filePath": "<filePath>"
},
"name": "code_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | File to analyze | |
| allow_external_access | No | Set to true to allow analyzing files outside the project root. User must explicitly approve this action. |