createUserPhoto
Attach a new photo record to a member profile using user ID, existing image filename, and type (logo, photo, cover_photo). The image file must already be stored in the site.
Instructions
Create a user photo - Create a new userphoto record. Writes live data.
Use when: attaching a new photo record to a member. The image file must already exist in site storage (upload via admin or auto_image_import).
Required: user_id, file, type.
Parameter interactions:
user_id- the membertype- slot:logo,photo, orcover_photofile- image filename (must already exist in site storage)
See also: updateUserPhoto (modify existing).
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": {
"user_id": "<user_id>",
"file": "<file>",
"type": "<type>"
},
"name": "createUserPhoto"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Image filename | |
| type | Yes | ||
| user_id | Yes |