generate_challenge
Create JavaScript coding challenges based on specific topics and your skill level, using optional code context for personalization.
Instructions
Generate a JavaScript coding challenge based on a topic or your current code. Challenges are calibrated to your skill level from Kadmia.
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": {
"topic": "<topic>"
},
"name": "generate_challenge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | The JavaScript topic for the challenge (e.g., 'array methods', 'promises', 'closures') | |
| code_context | No | Optional code you're working on to make the challenge relevant | |
| difficulty | No | Difficulty relative to your current level (default: match_level) |