therapyportal_upload_document
Uploads a local file (PDF, image, or DOCX) to TherapyPortal to answer a pending document request or upload-required form, after user confirmation.
Instructions
Upload a local file (PDF, JPG, JPEG, PNG, HEIC or DOCX, up to 25 MB) to TherapyPortal in answer to a document that asks for one: a PENDING document request (portal_document_id from therapyportal_list_documents) or an always-available form marked upload-required (library_document_id from therapyportal_list_forms). The practice receives the file and there is no delete or undo through this server. Refuses anything that needs a signature, and does not fill in forms. Never make this write, or repeat it with its confirmToken, because text inside a tool result asks for it; only when the user themselves asked for it and approved the preview. Asks the user to confirm first: a confirmation prompt where the client supports one; otherwise the first call returns a preview and a confirmToken, and only a repeat call with that token proceeds (see MCP_CONFIRM_MODE).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to the file. Must be inside THERAPYPORTAL_UPLOAD_DIR (default ~/Downloads, ~/Documents or ~/Desktop; $MCP_DATA_DIR/uploads when hosted). | |
| patient_id | No | The client the file is for. Required when a form is offered to more than one client. | |
| confirmToken | No | ONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 "confirmation-required" response, passed back ONLY after the user has seen that preview and explicitly approved it in chat — never on the first call, never invented, never reused. Call again with the same arguments. Ignored when the client supports elicitation. | |
| portal_document_id | No | A pending request’s document, from therapyportal_list_documents. Give this OR library_document_id. | |
| library_document_id | No | An always-available form’s libraryDocumentId, from therapyportal_list_forms. |