whatsapp_set_account_status
Update your WhatsApp account status message to share your current availability or mood with contacts.
Instructions
Update account status message.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Status message (max 139 characters) |
Implementation Reference
- src/tools/account.ts:69-83 (handler)The ToolHandler implementation for 'whatsapp_set_account_status'. Validates input with setAccountStatusSchema and updates account status via wsapiClient.put('/account/status', input).export const setAccountStatus: ToolHandler = { name: 'whatsapp_set_account_status', description: 'Update account status message.', inputSchema: { type: 'object', properties: { status: { type: 'string', description: 'Status message (max 139 characters)' } }, required: ['status'], }, handler: async (args: any) => { const input = validateInput(setAccountStatusSchema, args); logger.info('Setting account status'); await wsapiClient.put('/account/status', input); return { success: true, message: 'Account status updated successfully' }; }, };
- src/validation/schemas.ts:272-274 (schema)Zod schema for validating the tool input: status string (max 139 characters). Used in the handler's validateInput call.export const setAccountStatusSchema = z.object({ status: z.string().max(139), });
- src/server.ts:57-65 (registration)Registration of accountTools (which includes whatsapp_set_account_status) into toolCategories array, which is then looped to register all tools into the server's tools Map.const toolCategories = [ messagingTools, contactTools, groupTools, chatTools, sessionTools, instanceTools, accountTools, ];