analyze_code_structure
Extract structural elements like classes, functions, parameters, and return types from source code files to facilitate codebase navigation and analysis across multiple programming languages.
Instructions
Analyze the structure of one or more source code files and return classes, functions, their line numbers, nesting levels, parameters, and return types. Supports Python, JavaScript, TypeScript, Java, C#, and Go. Accepts either a single file path (string) or an array of file paths.
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": {
"file_path": "<file_path>"
},
"name": "analyze_code_structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path(s) to the source code file(s) to analyze | |
| include_docstrings | No | Whether to include docstrings in the output (default: false) |