analyze_code
Analyze code files to retrieve statistics such as line counts and function counts. Specify a file or directory path and optionally filter by language to gain insights into code structure and metrics.
Instructions
Analyzes code files and provides statistics.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
countFunctions | No | Whether to count functions. | |
countLines | No | Whether to count lines of code. | |
language | No | Optional language filter. | |
path | Yes | The target file or directory path. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"countFunctions": {
"description": "Whether to count functions.",
"type": "boolean"
},
"countLines": {
"description": "Whether to count lines of code.",
"type": "boolean"
},
"language": {
"description": "Optional language filter.",
"type": "string"
},
"path": {
"description": "The target file or directory path.",
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}