Upload and attach file
upload_and_attach_fileUpload a local file to your class Drive folder and attach it to an assignment submission without turning it in. Use it to add work files before submitting.
Instructions
Upload a local file into your class Drive folder and attach it to your work on an assignment. Does not turn it 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>",
"path": "<path>"
},
"name": "upload_and_attach_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | Post/assignment id, or its classroom.google.com link | |
| name | No | ||
| path | Yes | Local file path | |
| course | No | Course id, link or name. Optional when `item` is a full Classroom link (the course is read from it) |