Skip to main content
Glama
wsapi-chat
by wsapi-chat

whatsapp_set_account_picture

Change your WhatsApp profile picture by uploading a base64 encoded image. This tool updates your account's visual identity within the WSAPI WhatsApp MCP Server.

Instructions

Update account profile picture.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pictureBase64YesBase64 encoded image data

Implementation Reference

  • Main handler implementation for the whatsapp_set_account_picture tool. Validates input with setAccountPictureSchema and posts to wsapiClient /account/picture endpoint.
    export const setAccountPicture: ToolHandler = { name: 'whatsapp_set_account_picture', description: 'Update account profile picture.', inputSchema: { type: 'object', properties: { pictureBase64: { type: 'string', description: 'Base64 encoded image data' } }, required: ['pictureBase64'], }, handler: async (args: any) => { const input = validateInput(setAccountPictureSchema, args); logger.info('Setting account picture'); const result = await wsapiClient.post('/account/picture', input); return { success: true, pictureId: result.id, message: 'Account picture updated successfully' }; }, };
  • Zod validation schema for the tool input, requiring pictureBase64 matching base64Schema pattern.
    export const setAccountPictureSchema = z.object({ pictureBase64: base64Schema, });
  • Groups the account tools including setAccountPicture for registration in the MCP server.
    export const accountTools = { getAccountInfo, setAccountName, setAccountPicture, setAccountPresence, setAccountStatus };
  • src/server.ts:64-64 (registration)
    Includes accountTools in toolCategories array which registers all tools including whatsapp_set_account_picture in the MCP server via setupToolHandlers().
    accountTools,

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wsapi-chat/wsapi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server