Edit comment
edit_commentUpdate the text or visibility of one of your own Google Classroom comments on a post or assignment, identified by course and item ID or link.
Instructions
Edit one of your own comments. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.
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": {
"item": "<item>",
"comment_id": "<comment_id>",
"visibility": "<visibility>",
"text": "<text>"
},
"name": "edit_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Post/assignment id, or its classroom.google.com link | |
| text | Yes | ||
| course | No | Course id, link or name. Optional when `item` is a full Classroom link (the course is read from it) | |
| comment_id | Yes | ||
| visibility | Yes |