save_exercise
Persist an exercise’s files only after Codemm passes all validation gates and return its exercise ID for tutor use.
Instructions
Author tool. Save an exercise (exercise.yaml, README.md, starter/, solution/, mutants//, tests/visible/, tests/hidden/; a quiz: exercise.yaml, README.md, quiz.yaml). Codemm runs every gate and stores it only if all pass. Returns only the exercise id; report nothing else to the tutor.
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": {
"files": "<files>"
},
"name": "save_exercise"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | File map: { "relative/path": "file contents as text" } |