Upload a CPET recording
upload_cpetUpload a CPET export whose contents are already in the conversation
(pasted or attached) and get a cpet_id back.
The file is sent exactly as exported, unchanged: Oxynet does the parsing. It detects the vendor format and knows its unit conventions, per-phase clock resets and decimal-separator defects. A file parsed or converted beforehand loses that (a VO2 column in L/min read as mL/min is off by 1000, and nothing downstream notices).
For a file on disk, a call with no arguments returns the same one-time upload link as create_upload, so the bytes go from disk to Oxynet without entering the conversation (a 360 KB export is about 97,000 tokens as text).
UNSUPPORTED_FORMAT means no parser recognised the file. Its recovery
block gives the canonical JSON shape, the required channels and units, and
the formats considered, for a file converted into that shape.
Returns cpet_id (the handle every other tool takes), the detected
source format, sampling as the file arrived, channels with their
coverage, and flags. The recording stays on the server.
Privacy: the uploaded bytes are parsed and discarded, never stored, and the parsed record is deleted after 24 h. Oxynet needs no patient identifiers; CPET exports often carry the patient's name in the filename and header.
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": "upload_cpet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| content | No | The file's contents, verbatim: text for CSV/TXT/XML/JSON, base64 of the bytes for XLS/XLSX. | |
| filename | No | Any name ending in the file's real extension, which selects the parser. Only the extension is used; the name is not stored. | |
| retain_hours | No | Hours to keep the parsed record beyond the 24 h default. |