Upload Agent avatar
agent_avatar_uploadStores a PNG, JPEG or WebP picture (up to 10 MB) the host passes as a download URL.
The picture is squared to 512 px; the same picture returns the same URL. It shows once agent_draft_edit sets avatar_url and the draft is published. Files that exist only on the user's computer are set in the Agent settings page.
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": {
"agent_id": "<agent_id>",
"file": "<file>"
},
"name": "agent_avatar_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Avatar image supplied by the host as a download URL and file metadata. | |
| agent_id | Yes | Agent ID from agents_list or agent_create. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effect | Yes | ||
| agent_id | Yes | ||
| avatar_url | Yes |