KosmoKrator

messaging

LINE Messaging CLI for Headless Automation

Use the LINE Messaging CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.

5 functions 3 read 2 write Bearer token auth

LINE Messaging CLI for Headless Automation

Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.

Use headless automation when another tool needs a stable local command surface. The LINE Messaging CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# LINE Messaging CLI for Headless Automation
kosmokrator integrations:configure line --set access_token="$LINE_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call line.line_send_message '{"to":"example_to","messages":"example_messages","notification_disabled":true}' --json

Discovery Before Execution

Agents and scripts can inspect LINE Messaging docs and schemas before choosing a function.

kosmo integrations:docs line --json
kosmo integrations:docs line.line_send_message --json
kosmo integrations:schema line.line_send_message --json
kosmo integrations:search "LINE Messaging" --json
kosmo integrations:list --json

Useful LINE Messaging CLI Functions

FunctionTypeParametersDescription
line.line_send_message Write to, messages, notification_disabled Send a push message to a specific LINE user, group, or room. Supports text, image, video, sticker, location, flex, and other message types.
line.line_broadcast_message Write messages, notification_disabled Broadcast a message to all users who have added the LINE Official Account as a friend. Supports all message types.
line.line_get_profile Read user_id Get the profile information of a LINE user, including display name, profile image URL, status message, and language.
line.line_list_friends Read limit, start List the friends (followers) of the LINE Official Account. Returns user IDs that can be used with send_message and get_profile.
line.line_get_current_user Read none Get the profile of the LINE Official Account (bot) itself, including display name, icon URL, and basic info.

Automation Notes

Related LINE Messaging CLI Pages