ui_builder_validate_watch_face
Check what a watch-face design (a wff-watchface catalog design) costs on a watch, with Google's own validators: the WFF schema, the memory footprint and the Watch Face Push checks a watch runs before it installs a face. Returns passed and one entry per check with its findings; each finding carries a suggestion saying what to change. The memory-footprint check's memory is the face's decoded size against activeLimitBytes and ambientLimitBytes, and its contributors list the resources that cost the most (pixel size, decoded bytes, the size each is drawn at). Keep both modes under their limits: downscale an image to the size it is drawn at, and give ambient a dim or reduced variant rather than the full-colour one. A bitmap the face names that the design does not pin fails bundle-resources; pin it with ui_builder_put_asset. Validation is explicit: nothing else runs it, not an edit, a read or a publish. It runs the full packager, so call ui_builder_validate_watch_face when an edit pass is done and before ui_builder_publish_watch_face, not after every edit; an unchanged face answers from cache. The server runs one validation at a time and limits each account, so a busy or rate-limited call answers watch_face_validation_busy or watch_face_validation_rate_limited with retryAfterSeconds; wait that long. The per-edit watchFaceCost is the cheap estimate: every ui_builder_apply, ui_builder_replace_design_document and ui_builder_put_asset on a watch face already replies with it, an estimate of the same budgets (active and ambient as usedBytes, limitBytes, percentOfLimit), the topContributors with what to do about each, and the estimate's errors; read it after each edit and fix what it flags before building further. A failing face is a report with passed: false, not an error. A host whose operator left Google's validators off answers watch_face_validation_disabled.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"designId": "<designId>"
},
"name": "ui_builder_validate_watch_face"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | A grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it. | |
| designId | Yes | ||
| revision | No | The revision to validate. Defaults to the current one. | |
| agentName | No | Optional agent/client name shown to design viewers; self-reported. | |
| agentModel | No | Optional current model name shown to design viewers; self-reported. Omit when unknown. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||