gemini_analyze_code
Analyze code with AI to explain functionality, optimize performance, debug errors, refactor structure, or compare versions across any language.
Instructions
Use Gemini CLI to analyze and explain code functionality
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": "gemini_analyze_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Programming language (auto-detected if not specified) | |
| file_path | Yes | Path to the source code file to analyze | |
| analysis_type | No | explain |