Get Assignment File
get-assignment-file-linkFetch an assignment file—teacher document, student submission, or corrected copy—and get a 15-minute browser link or local file path.
Instructions
Fetch an assignment file (teacher document, student submission, or corrected copy). In HTTP mode with MCP_SERVER_URL set, returns a browser link that expires after 15 minutes; otherwise saves the file locally and returns its path. Get file IDs and roles from get-assignment-detail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| file_id | Yes | Assignment file ID (UUID) from get-assignment-detail — a teacher document, student submission, or corrected copy. | |
| term_id | No | Academic term ID in YYYYN format (e.g. '20263'). | |
| course_id | Yes | Full course ID including group number (e.g. '2433C5EM.1012'). Always required, even for document and assignment downloads where the item ID alone looks sufficient. | |
| assignment_id | Yes | Assignment ID (UUID) from get-course-assignments. |