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.
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": {
"course_id": "<course_id>",
"assignment_id": "<assignment_id>",
"file_id": "<file_id>",
"role": "<role>"
},
"name": "get-assignment-file-link"
}
}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. |