therapyportal_download_document
Download client-completed forms or practice-uploaded files from TherapyPortal using a portal document ID; saves to disk locally or returns base64 bytes.
Instructions
Download a TherapyPortal document as a file, by portal_document_id from therapyportal_list_documents: a form the client completed (rendered to PDF by the portal) or a file the practice uploaded for review. Saves to disk and returns the path on a local install, or returns the bytes inline (base64) on a hosted runner.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest | No | Folder to save into (server transport, local install only). Must be inside THERAPYPORTAL_OUTPUT_DIR, or ~/Downloads / ~/Documents when that is unset. | |
| portal_document_id | Yes | portalDocumentId from therapyportal_list_documents. |