upload_agent_media
Upload local image files to assign as agent avatars or logos, supporting webp, png, jpg, jpeg, and svg formats up to 2MB.
Instructions
Upload a local image file to the CDN and assign it to an agent as avatar or logo.
Reads the file from the local filesystem, uploads it via the backend media API (Cloudinary), and updates the agent's widgetConfig with the resulting URL.
Supported formats: webp, png, jpg, jpeg, svg. Max size: 2MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | The MongoDB ID of the agent | |
| filePath | Yes | Absolute path to the local image file (webp, png, jpg, svg) | |
| mediaType | No | Type of media: "avatar" for agent avatar, "logo" for widget logo. Default: "avatar" |