watchface_upload_file
Uploads one local asset file per call to AstroToo watchface staging, returning a temporary FileId that must be bound via create or patch before reboot.
Instructions
AstroToo-only POST /upload_local_asset with one multipart file. Assets must be sent serially, one file per call, using Device/UploadLocalAsset metadata. Each success returns a temporary local:// FileId which must be bound by a successful create or patch; firmware then atomically moves the staging file into durable watchface storage. Unbound uploads are cleared on reboot and are never uploaded outward. TAR/TGZ/ZIP are rejected. The product photo/pixel POST /upload route is kept separate. TimesFrame generic /upload is blocked in MCP local-only mode; use create/patch multipart assets instead. For AstroToo, first query hardware/capabilities; use the 480x480 AstroToo resources. Legacy 800x1280 examples and typography apply only to TimesFrame.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional per-call target override. If omitted, environment variables are used. | |
| fileName | No | Filename in multipart header. Defaults to basename(filePath). | |
| filePath | Yes | ||
| metadata | Yes | ||
| filePartName | No | Second multipart part name. Default is current UTC ms timestamp. |