Push Flex Message
push_flex_messageSend a Flex Message with rich layout to a LINE user, group, or room. Provide the Flex container as JSON and alt text for push notifications.
Instructions
Send a Flex Message (rich layout) to a LINE user, group, or room. Pass the Flex container as a JSON string.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"altText": "<altText>",
"contents": "<contents>"
},
"name": "push_flex_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target ID — User ID (U…), Group ID (C…), or Room ID (R…). If omitted, falls back to the DEFAULT_UID environment variable. | |
| altText | Yes | Alternative text shown in push notifications (max 400 chars) | |
| contents | Yes | Flex Message container JSON string (bubble or carousel) |