export_activity_data
Export complete raw activity streams and interval records to a local artifact, with optional stream filters and sample ranges for targeted retrieval.
Instructions
Export complete raw activity data to the configured local artifact.
Use this after a compact read when the client needs all stream samples and
interval records. The stream arrays retain their upstream index and null
values; this read validates their shape before handing them to the local
artifact store. An optional stream_types filter narrows the streams,
and an optional half-open sample range slices each returned array. The
manifest reports source unit conflicts and time-axis ambiguity; optional
type-based unit hints are separate from source declarations. Streams
and intervals come from separate
HTTP reads: the returned hash verifies the local composite bytes, not an
atomic upstream snapshot. Use get_artifact_chunk with the opaque ID when
the MCP client cannot access the server filesystem. Source completeness
remains unknown until the upstream data contract says otherwise.
Tymewear VT/VE remain in raw device units, with no conversion to liters;
use get_metric_definitions for respiratory field and FIT mapping context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| end_index | No | ||
| activity_id | Yes | ||
| start_index | No | ||
| stream_types | No | ||
| expected_athlete_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| error | No | ||
| query | No | ||
| source | Yes | ||
| status | Yes | ||
| coverage | Yes | ||
| warnings | No | ||
| pagination | No | ||
| request_id | No | ||
| schema_version | No | 1.0 |