Set or remove my photo
profile_avatar_setSets or removes your own profile photo. Give an https image_url or a small image_base64 (PNG, JPEG or WebP, at least 120 px), or clear:true to remove it. The server re-encodes the picture to a square WebP and removes its metadata. The photo link is public. Call without confirm first for a preview with the image size.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "profile_avatar_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Remove the current photo instead of uploading. | |
| confirm | No | Set true only on the second call, after the user approved the preview. | |
| image_url | No | https URL of a PNG, JPEG or WebP image (max 5 MB, 120-6000 px). Fetched by the server. | |
| image_base64 | No | Small image as base64 (about 180 KB at most); use image_url for anything larger. | |
| preview_token | No | The preview_token returned by the first call (same input). |