explain-code
Analyzes source code to clarify its behavior and implementation, with optional language detection and adjustable detail levels.
Instructions
Explains what a piece of code does and how it works
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 to explain | |
| model | No | Optional model to use (e.g., 'qwen-turbo'). If not specified, uses the default model (qwen-plus). | |
| language | No | Programming language of the code (e.g., 'python', 'javascript', 'java', 'cpp'). If not specified, Qwen will try to detect it. | |
| detailLevel | No | Level of detail for the explanation | detailed |