Create upload links
create_uploadOne-time URLs for uploading CPET files that are on disk, named by a path.
Returns an upload_url and a ready-to-run curl line. POSTing the file to
it (multipart field file) returns the same summary as upload_cpet,
cpet_id included. The bytes never enter the conversation, and the URL
carries its own five-minute credential, so the command handles no API key.
curl -sS -F "file=@/path/to/export.csv" "<upload_url>"For a folder, count mints every URL in one call (upload_urls), so one
shell command can POST every file: a cohort takes two steps in total.
files=(/data/*.xls); urls=(URL1 URL2 ...)
for i in "${!files[@]}"; do
curl -sS -F "file=@${files[$i]}" "${urls[$i]}"; doneEach URL accepts exactly one file, and they all expire five minutes after minting.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many one-time URLs to mint, 1-200. Above 1 the result carries `upload_urls` as a list; `upload_url` is always the first. | |
| filename | No | Only used if the uploaded file carries no name of its own. | |
| retain_hours | No | Hours to keep the parsed record beyond the 24 h default. |