analyze_code
Analyze code for guidance, validation, AI insights, and similar code examples to enhance development quality and workflow.
Instructions
Unified code analysis operations
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>",
"filePath": "<filePath>",
"projectPath": "<projectPath>"
},
"name": "analyze_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results (optional for similar_code) | |
| filePath | Yes | Path to the file to analyze | |
| projectPath | Yes | Path to the project directory | |
| projectType | No | Type of project (optional) | |
| analysisType | Yes | Type of analysis to perform |