gradescope_submit
Upload code, PDF, or document files as a Gradescope assignment submission, replacing the active submission. Validate with a dry run first, then confirm to send.
Instructions
Upload files as your submission to a Gradescope assignment (code, PDF or document). This replaces your active submission and course staff can see it. Use when the user asks to submit an assignment on Gradescope, including one linked from Minerva. Always call with dryRun: true first, show the plan, and wait for the user to confirm.
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": {
"courseId": "<courseId>",
"assignmentId": "<assignmentId>",
"files": "<files>"
},
"name": "gradescope_submit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Absolute paths of the files to upload | |
| unzip | No | Code uploads only: unpack .zip files and upload their contents, as the website does (default true) | |
| dryRun | No | Validate and return the plan without uploading | |
| account | No | Saved account to use (see minerva_list_accounts). Only needed when several accounts are saved and the user has not chosen one yet. | |
| confirm | No | Must be true to actually send. Only set it after showing the user the dryRun plan and getting their explicit yes. | |
| courseId | Yes | Gradescope course number like "1234567" (from gradescope_list_courses), or a module code like "COMP3620" | |
| assignmentId | Yes | Assignment id (from gradescope_list_assignments) or a unique part of its title, e.g. "Perceptron" | |
| leaderboardName | No | Required when the assignment has a leaderboard |