GET /files/download
Download a file as raw bytes.
This is a device HTTP route. Set DEVICE_URL to your reachable device URL; connection and examples explain how. Do not append this path to the public MCP URL.
Parameters
| Parameter | Type | Meaning |
|---|---|---|
path | query string | Required relative file path; maximum 8 MiB. |
Response
application/octet-stream bytes.
Example
sh
curl --fail-with-body "$DEVICE_URL/files/download?path=Demo.cso/main.js" --output main.jsPaths are relative to Scripts. Absolute paths, parent traversal and symlink traversal are rejected. File rules apply to every file endpoint.
Check the HTTP status and any JSON error. HTTP workflows and error handling explain shared limits. All endpoints.