canvas_grade_submission
Post a grade, feedback comment, or excused status to a Canvas student submission. Confirm the student, assignment, and grade before writing to the live gradebook.
Instructions
Post a grade and/or a comment to a submission. MUTATES STUDENT RECORDS.
Writes to the live gradebook immediately and cannot be undone from here. ALWAYS show the instructor the exact student, assignment, grade, and comment text and get an explicit go-ahead before calling. Never call this to "try" something or as part of exploratory reasoning.
Args: assignment_id: numeric assignment id. user_id: numeric Canvas user id of the student. grade: points ("18"), percentage ("88%"), or a letter grade. Omit to post a comment only. comment: comment posted alongside the grade; the student sees it. excused: True to excuse the student from the assignment entirely. course_id: numeric course id; defaults to CANVAS_DEFAULT_COURSE_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grade | No | ||
| comment | No | ||
| excused | No | ||
| user_id | Yes | ||
| course_id | No | ||
| assignment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |