explain_code
Explains how a code snippet works by covering its purpose, logic flow, patterns, and design decisions, with optional focus on performance, security, or best practices.
Instructions
Request Proofessor to explain how specific code works, including its purpose, logic flow, patterns used, and design decisions.
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": {
"code": "<code>"
},
"name": "explain_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code snippet to explain. | |
| focus | No | Optional: Specific aspect to focus on (e.g., 'performance', 'security', 'design patterns', 'best practices'). | |
| language | No | Programming language of the code (e.g., 'javascript', 'python', 'typescript'). |