grade_student_question
Assign a numeric score and optional comment to a student's short-answer or attachment question. Use after previewing the student paper and before submitting the overall mark.
Instructions
[批改 3/4] 给学生某道题打分。
何时调用:仅简答题(type=6)和附件题(type=7)需要;选择/填空/判断/编程系统自动评分,跳过。
score 上限 = query_preview_student_paper 返回的该题 score 字段;未 submit 前可重复打分覆盖。
若整卷已提交批阅,先调用 withdraw_student_mark 重开,再重新打分。
四步流程:query_test_result → query_preview_student_paper → grade_student_question → submit_student_mark。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| score | Yes | 批改得分(0 ≤ score ≤ 该题满分,满分从 query_preview_student_paper 的 questions[].score 取) | |
| comment | No | 批改评语(可为空) | |
| group_id | Yes | 课程组id(通过 query_teacher_groups 获取) | |
| answer_id | Yes | 学生单题答案id(来自 query_preview_student_paper 的 questions[].answer_id 字段) | |
| record_id | Yes | 答题记录id(来自 query_test_result 的 answer_records[].record_id 字段) | |
| publish_id | Yes | 发布id(来自 query_group_tasks 的 publish_id 字段) | |
| question_id | Yes | 题目id(通过 query_paper 获取) | |
| mark_paper_record_id | Yes | 批阅记录id(来自 query_preview_student_paper 的 mark_paper_record_id 字段) |