broadcast_text_message
Send plain text messages to all followers of a LINE Official Account for announcements, updates, or general communication.
Instructions
Broadcast a simple text message via LINE to all users who have followed your LINE Official Account. Use this for sending plain text messages without formatting. Please be aware that this message will be sent to all users.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes |
Implementation Reference
- src/tools/broadcastTextMessage.ts:26-37 (handler)The async handler that executes the broadcast message operation using the MessagingApiClient.
async ({ message }) => { try { const response = await this.client.broadcast({ messages: [message as unknown as messagingApi.Message], }); return createSuccessResponse(response); } catch (error) { return createErrorResponse( `Failed to broadcast message: ${error.message}`, ); } }, - src/tools/broadcastTextMessage.ts:18-38 (registration)Registration of the broadcast_text_message tool within the MCP server.
register(server: McpServer) { server.tool( "broadcast_text_message", "Broadcast a simple text message via LINE to all users who have followed your LINE Official Account. Use this for sending " + "plain text messages without formatting. Please be aware that this message will be sent to all users.", { message: textMessageSchema, }, async ({ message }) => { try { const response = await this.client.broadcast({ messages: [message as unknown as messagingApi.Message], }); return createSuccessResponse(response); } catch (error) { return createErrorResponse( `Failed to broadcast message: ${error.message}`, ); } }, );