gradescope_select_pages
Assign PDF submission pages to specific questions for Gradescope grading, using a dry-run plan first and confirming before saving.
Instructions
Assign pages of a PDF submission to questions (the "Select pages" step Gradescope needs before grading, e.g. after gradescope_submit returns needsPageSelection). Use when the user asks to select or assign pages. Decide the pages from the PDF the user uploaded (read it), never by guessing, and show the plan: always call with dryRun: true first, then with confirm: true after the user agrees. Questions you leave out keep their pages unless replace is true.
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>",
"pages": "<pages>"
},
"name": "gradescope_select_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | Question number (like "1.2"), id or unique title part → page numbers, e.g. {"1.1": [1, 2], "1.2": "3-4", "2.1": 5}. [] clears a question | |
| dryRun | No | Validate and return the plan without saving | |
| 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. | |
| replace | No | Clear the pages of questions not listed (default false: they keep theirs) | |
| 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" | |
| submissionId | No | Omit to use your active submission |