uplus_repair_homework
Withdraw a submitted homework, fill missing or partial answers, and resubmit it. Use after an audit flags gaps; submits only once every known gap has an answer.
Instructions
Withdraw a submitted homework, fill its gaps, and resubmit it.
Use after uplus_patrol (audit is on by default) reports a homework as
missing (漏答) or partial (多选漏选). answers maps
question_id (or question order as a string) to the corrected answer;
the patrol result's repair_briefs lists exactly which questions need
one. Answers already stored in the local journal (because this tool
submitted the homework earlier) are used automatically, so a
journal-covered partial can be repaired without new model answers.
The tool refuses to withdraw until every known gap has an answer. A graded
homework cannot be withdrawn and is reported without changing anything.
Existing answers are preserved and re-filled, so a withdrawal that clears
the draft still leaves enough answers to resubmit. Submission uses the same
gate as uplus_answer_homework; subjective items never block the repair.
verify_unjudged=True additionally re-answers multi-selects whose
completeness could not be checked while the homework was pending grading.
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": {
"task_id": "<task_id>",
"course_id": "<course_id>"
},
"name": "uplus_repair_homework"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| submit | No | ||
| answers | No | ||
| task_id | Yes | ||
| course_id | Yes | ||
| verify_unjudged | No |