canvas_upload_file
Uploads a file to a Canvas course for assignment submission and returns the file ID needed to complete the submission.
Instructions
Upload a file to a course for assignment submission. Returns the file ID to use when submitting.
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_name": "<file_name>",
"file_content": "<file_content>"
},
"name": "canvas_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_id | Yes | The Canvas course ID | |
| file_name | Yes | Name of the file | |
| content_type | No | MIME type of the file. Defaults to text/plain. | |
| file_content | Yes | File content as a string (for text files) | |
| assignment_id | Yes | The assignment ID to upload for |