canvas_file_download_link
Generate a single-use curl command and five-minute link to download an original Canvas file from a shell-capable coding agent; rerun the tool if the command expires.
Instructions
Put an ORIGINAL Canvas file (e.g. an assignment's starter-code ZIP) on the user's computer from a coding agent with a shell, such as Claude Code, Codex or Cursor: returns the exact curl command (a link that works ONCE, for 5 minutes, and only with the header in that command) and the expected size; the file itself comes straight from Canvas. Run the command right away; if it fails or expires, call this again. Cloud chats cannot reach it: there, use canvas_file_original (the app attaches the file) or canvas_file_content. Takes a Canvas file_id only (from canvas_find_files, canvas_files or a /files/ link).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | Canvas file id, from canvas_files, canvas_find_files or a module item. |