canvas files subcommand group lets you list files in a course, download a file to local temporary storage, and browse the course folder hierarchy. All output is printed as pretty-printed JSON.
canvas files list
List files in a Canvas course.
Canvas course ID.
Filter files by name. Case-insensitive substring match.
Sort key for the returned files. Passed directly to the Canvas API. Common values include
name, size, created_at, and updated_at.Sort order:
asc (ascending) or desc (descending). Has no effect without --sort.Maximum number of files to return.
Examples
List all files, sorted by size descending:canvas files download
Download a course file to local temporary storage. The response includes the local path to the downloaded file.
Canvas course ID.
Canvas file ID. Use
canvas files list to find file IDs.Re-download the file even if a cached local copy already exists.
Files are saved to a local temporary directory managed by the MCP server. The JSON response includes the path to the downloaded file on disk.
Examples
Download a file (uses cached copy if available):canvas files folders
List the folder hierarchy for a Canvas course.
Canvas course ID.
Maximum number of folders to return.
