watchface_create_local_clock
Creates or updates the MCP-managed local watchface on a Divoom LAN device by injecting the managed clock slot, uploading a JPEG/WebP backdrop, and handling TimesFrame or AstroToo asset rules.
Instructions
Upsert the MCP-managed local watchface with multipart. The server injects its managed ClockId, reads that slot first, creates it only when missing, and otherwise updates it. Callers do not provide a ClockId. TimesFrame accepts DialAssets image/auto/bundle and may use clock_bg.tar.gz. AstroToo accepts DialAssets=image only: upload every element separately with watchface_upload_file, put each returned local:// FileId in ItemList[i].image_addr, then call this tool with one 480x480 JPEG/WebP backdrop. AstroToo rejects TAR/TGZ/ZIP, UseDialAssetBundle!=0, and bundle_image. 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(imagePath). | |
| metadata | Yes | First multipart JSON: ClockName, ItemList, ItemIdList. Omit ClockId; the MCP server injects the managed slot automatically. AstroToo requires DialAssets=image and local:// image_addr values from prior per-file uploads. TimesFrame may use auto/image/bundle and legacy UseDialAssetBundle. | |
| imagePath | Yes | Single JPEG/WebP backdrop (TimesFrame 800x1280; AstroToo 480x480; less than 500 KiB). TimesFrame also supports clock_bg.tar.gz. AstroToo never accepts an archive here. | |
| filePartName | No | Second multipart part name. Default is current UTC ms timestamp. |