prepare_submission
Prepares turning in or unsubmitting a Google Classroom assignment: uploads optional local files as drafts, submits nothing, and returns a summary and token for user confirmation.
Instructions
Step 1 of 2 for turning in or unsubmitting work. Submits nothing.
action: "turn_in" or "unsubmit". assignment_link: the assignment's classroom.google.com link. file_paths: for turn_in, absolute paths of local files to attach (optional; with none it is "Mark as done"). They are uploaded and attached as a draft. Returns a summary, a screenshot path and a token. Show the summary to the user and ask them to confirm before calling confirm_submission.
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": {
"action": "<action>",
"assignment_link": "<assignment_link>"
},
"name": "prepare_submission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| file_paths | No | ||
| assignment_link | Yes |