Analyze Code
cc_analyze_codeAnalyze Python, JavaScript, or TypeScript files to extract classes, functions, imports, lines of code, and complexity metrics for code review and maintenance.
Instructions
Analyzes a Python, JavaScript, or TypeScript file: classes, functions, imports, metrics.
Args:
path (string): Path to a .py, .js/.jsx/.mjs/.cjs, or .ts/.tsx/.mts/.cts file
Returns:
Classes with methods, functions, import analysis, LOC, complexity
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": {
"path": "<path>"
},
"name": "cc_analyze_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a supported Python, JavaScript, or TypeScript file |