Build avatar URL
build_avatar_urlChecks the options and returns an avatar link on the DiceBear HTTP API, ready for an tag, plus notes on license and use.
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": {
"style": "<style>",
"seed": "<seed>"
},
"name": "build_avatar_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | Yes | Any text, such as a user name or ID. The same seed and options always give the same avatar. | |
| style | Yes | Style name from list_styles, for example "lorelei". | |
| format | No | Image format. SVG is the smallest and scales. | svg |
| options | No | Style options from get_style_options, for example {"backgroundColor": ["b6e3f4", "c0aede"], "eyesVariant": ["variant01"], "flip": "horizontal", "size": 64}. Lists are arrays, weighted enums take an object of value to weight, colors are hex. |