canvas_upload_file
Upload a local file into a Canvas course Files area, creating missing folders and resolving duplicate names. Use it to add course materials from the machine running the MCP server.
Instructions
Upload a local file into the course's Files area. MUTATES the course.
Three-step Canvas dance, handled here: register the upload, POST the bytes to the storage host, then confirm. The Canvas token is never sent to the storage host.
Args: local_path: absolute path to the file on the machine running this server. parent_folder_path: Canvas folder, e.g. "course files/week03". Created if it does not exist. name: name to store it under; defaults to the local filename. on_duplicate: "rename" (default, keeps both) or "overwrite". course_id: numeric course id; defaults to CANVAS_DEFAULT_COURSE_ID.
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": {
"local_path": "<local_path>"
},
"name": "canvas_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| course_id | No | ||
| local_path | Yes | ||
| on_duplicate | No | rename | |
| parent_folder_path | No | course files |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |