therapyportal_upload_slot
Get a signed upload URL for one allowed file, PUT the file bytes with the returned Content-Type before expiry, then call the document upload tool with the blob key.
Instructions
Hosted servers: get a signed upload URL for ONE file you then upload with therapyportal_upload_document. Sends nothing to the practice. PUT the file’s bytes to uploadUrl with the returned Content-Type (the returned curl does exactly that; replace its <path to …> placeholder), then call therapyportal_upload_document with blob_key. The URL expires at expiresAt. Same file rules as the upload: PDF, JPG, JPEG, PNG, HEIC or DOCX, up to 25 MB, a bare filename; .doc is refused.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>"
},
"name": "therapyportal_upload_slot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | The name the practice will see — a bare name with its extension, e.g. "scan.pdf". | |
| mime_type | No | Optional; must agree with the extension. Default: from the extension. |