Remove attachment
remove_attachmentDeletes your own attachment from assignment work before it is turned in, using a material ID, Drive file ID, URL, or exact title to identify it.
Instructions
Remove one of your own attachments from your work on an assignment (match by material id, Drive file id, URL or title). Only possible while not turned in. 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>",
"attachment": "<attachment>"
},
"name": "remove_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Post/assignment id, or its classroom.google.com link | |
| course | No | Course id, link or name. Optional when `item` is a full Classroom link (the course is read from it) | |
| attachment | Yes | materialId, driveFileId, url or exact title |