canvas_prepare_file_upload
Preview a file from Downloads or TUE_UPLOAD_DIR for an assignment, then confirm upload to capture bytes and return a Canvas file ID for online submission.
Instructions
Preview a file from Downloads or TUE_UPLOAD_DIR for a particular assignment. Confirming uploads the captured bytes and returns a Canvas file ID. Use submit_assignment with online_upload and that file ID to turn it in.
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>",
"filename": "<filename>"
},
"name": "canvas_prepare_file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| courseId | Yes | ||
| filename | Yes | ||
| contentType | No | application/octet-stream | |
| assignmentId | Yes |