Get upload links for MRI files
remene_presign_study_uploadPresigned PUT URLs for files of a study opened with remene_create_study: ask for up to 100 files per call (maxFilesPerCall), each by its index (0 to fileCount - 1) and exact size in bytes. A call may sign fewer files than asked, so that its answer fits in one result: items holds the files it signed, in the order asked, and unsigned the indices of the files it did not sign. Put those first in your next call (adding more files, up to 100 in all), and continue until unsigned is empty and every file has a URL. PUT each file’s bytes to its url with exactly the headers returned, within expiresAt. conflict with reason: not_uploading means the study was already completed. invalid_input with a reason means the batch was refused: too_many_items, idx_out_of_range, file_too_large, duplicate_idx or invalid_body.
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": {
"studyId": "<studyId>",
"items": "<items>"
},
"name": "remene_presign_study_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| studyId | Yes | The study id, as listed by remene_list_studies |