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