Comment on Submission
comment_on_submissionAdd a text comment to a Canvas submission without changing its grade or score. Use it to leave feedback or reply to a student's comment on a course assignment submission.
Instructions
Add a text comment to a submission and return the updated Canvas submission object, with the new entry appended to submission_comments. Not idempotent: each call posts another comment rather than editing or replacing a prior one, so a retried call leaves duplicate comments behind instead of one. This only adds a comment — it never changes grade or score; use grade_submission for that, on the same course_id/assignment_id/user_id. Use list_submission_comments_needing_attention to find submissions where the student's most recent comment has not yet been answered by staff. Permission is looser than grade_submission's: the submission's own student and any peer reviewer assigned to it can comment without grading rights; anyone who can grade can also comment.
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": {
"course_id": "<course_id>",
"assignment_id": "<assignment_id>",
"user_id": "<user_id>",
"comment": "<comment>"
},
"name": "comment_on_submission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | Yes | The comment text to add | |
| user_id | Yes | The Canvas user ID | |
| course_id | Yes | The Canvas course ID | |
| assignment_id | Yes | The Canvas assignment ID |