canvas_link_content
Reads the text of a file linked from Canvas syllabus, page, assignment, or discussion—including Google Docs, Drive, Dropbox, GitHub, PDF, Office, ZIP, or code files—using the link’s exact URL.
Instructions
Read the TEXT of a file that a course links to on another site, from a link written in the syllabus, the front page, a page, an assignment or an announcement/discussion: Google Docs, Slides and Sheets, Google Drive files, Dropbox files and folders, GitHub files and repositories, or a direct link to a PDF/Office/ZIP/code file. Give where the link is (source, and source_id: the page_url for a page, the assignment_id or the discussion/announcement topic_id) and the link exactly as it appears there; only a link that really is in that Canvas content is read. canvas_find_files lists such links with these arguments (read_with). Google and Dropbox files must be shared publicly ("Anyone with the link"). For module items use canvas_module_file_content. Same text options as canvas_file_content (offset, max_chars, entry for ZIPs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The link exactly as it appears in that Canvas content. | |
| entry | No | ZIP only: path of one file inside the archive, exactly as shown in the listing. | |
| offset | No | Character to start reading from; pass next_offset from the previous call to continue. | |
| source | Yes | Where the link is written: syllabus, front_page, page, assignment or discussion. | |
| course_id | Yes | Canvas course id, from canvas_courses. | |
| max_chars | No | Most characters of text to return in this call (default 20000). | |
| source_id | No | page: its page_url; assignment: the assignment_id; discussion: the topic_id. Not used for syllabus and front_page. |