Remove Profile Picture
remove_profile_pictureRemove the profile picture from your pinned WhatsApp instance. This action deletes the current image and resets it to default.
Instructions
Remove the profile picture of the pinned WhatsApp instance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/remove-profile-picture.ts:5-23 (handler)The registerRemoveProfilePicture function registers the 'remove_profile_picture' tool. It calls the Evolution API DELETE /chat/removeProfilePicture/{instanceName} to remove the profile picture of the pinned WhatsApp instance.
export function registerRemoveProfilePicture(server: McpServer, client: EvolutionClient): void { server.registerTool( "remove_profile_picture", { title: "Remove Profile Picture", description: "Remove the profile picture of the pinned WhatsApp instance.", inputSchema: {}, }, async () => { try { const data = await client.delete(`/chat/removeProfilePicture/${client.instanceName}`); return { content: [{ type: "text" as const, text: JSON.stringify(data, null, 2) }] }; } catch (e) { if (e instanceof McpError) return { isError: true, content: [{ type: "text" as const, text: e.message }] }; throw e; } } ); } - Input schema for the tool. It has an empty inputSchema object, meaning no parameters are required.
{ title: "Remove Profile Picture", description: "Remove the profile picture of the pinned WhatsApp instance.", inputSchema: {}, - src/tools/index.ts:112-112 (registration)Registration call in registerAllTools, invoking registerRemoveProfilePicture(server, client) under the Profile section.
registerRemoveProfilePicture(server, client); - src/tools/index.ts:39-39 (registration)Import statement for the registerRemoveProfilePicture function from the remove-profile-picture module.
import { registerRemoveProfilePicture } from "./remove-profile-picture.js"; - src/evolution-client.ts:28-30 (helper)The delete method on EvolutionClient used by the handler to make the HTTP DELETE request.
async delete<T = unknown>(path: string, body?: unknown): Promise<T> { return this.request<T>("DELETE", path, body); }