ic_download_document
Retrieve a student's PDF document by its ID and save it to a specified path inside your downloads directory. Overwrite existing files only when requested.
Instructions
Download a student's document (PDF) to disk, inside the download directory (IC_DOWNLOAD_DIR, default ~/Downloads). documentId is the url field returned by ic_list_documents. Will not overwrite an existing file unless overwrite is true. Returns FeatureDisabled if the district has the module turned off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| district | Yes | ||
| overwrite | No | ||
| documentId | Yes | The url field returned by ic_list_documents | |
| destinationPath | Yes | Where to write the PDF. Must be inside the download directory (IC_DOWNLOAD_DIR, default ~/Downloads); a relative path resolves against it. |