understand_code
Explains what a JavaScript snippet does using an LLM. Returns a clear error message when no LLM provider is set.
Instructions
Use an LLM to explain what a JS snippet does. Returns LlmNotConfigured cleanly when no provider is set.
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": {
"source": "<source>"
},
"name": "understand_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| question | No | ||
| model | No | ||
| maxTokens | No |