yoto_icon_upload
Upload a 16×16 PNG/GIF icon or a rendered icon hash to Yoto and get a yoto:# reference for use in a set_icon operation.
Instructions
Upload an icon: the sha256 of a rendered icon, or a local PNG/GIF path. Returns its yoto:# ref.
Without auto_convert the file must be exactly 16×16 RGBA PNG, so Yoto stores the pixels as drawn. Use the ref in a set_icon op.
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": {
"icon": "<icon>"
},
"name": "yoto_icon_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | Yes | ||
| account | No | ||
| auto_convert | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||