Generate problem
generate_problemPersist an agent-authored LeetCode-style DSA problem with structured fields (title, difficulty, prompt, examples, optional steps, reference approach) and return its unique id for later practice.
Instructions
Store an agent-authored, LeetCode-style DSA problem and return its id/slug. YOU (the agent) write the creative, immersive content; this tool persists it with structure so it can be practiced in a session. For multi-step problems, provide steps. Provide a referenceApproach (hidden from the solver) to ground hints and judging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Only for multi-step problems | |
| theme | No | ||
| title | Yes | ||
| prompt | Yes | Immersive problem statement (markdown) | |
| topics | Yes | e.g. arrays, dp, graphs | |
| examples | Yes | ||
| difficulty | Yes | ||
| constraints | No | ||
| starterCode | No | Keyed by language, e.g. { "typescript": "function ..." } | |
| referenceApproach | No | Hidden from solver; grounds hints/reveals/judging |