messaging
LINE Messaging CLI for CI
Use the LINE Messaging CLI for CI with headless JSON commands, schema discovery, credentials, and permission controls.
5 functions 3 read 2 write Bearer token auth
LINE Messaging CLI for CI
Run integration calls from CI jobs with JSON output, explicit credentials, and predictable exit status.
Use this shape when a pipeline needs to read or update an external service. 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 CI
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
| Function | Type | Parameters | Description |
|---|---|---|---|
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
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.