KosmoKrator

communication

Lark Suite CLI for Headless Automation

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

7 functions 5 read 2 write Bearer token auth

Lark Suite 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 Lark Suite CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Lark Suite CLI for Headless Automation
kosmokrator integrations:configure lark --set access_token="$LARK_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call lark.lark_list_chats '{"page_size":1,"page_token":"example_page_token"}' --json

Discovery Before Execution

Agents and scripts can inspect Lark Suite docs and schemas before choosing a function.

kosmo integrations:docs lark --json
kosmo integrations:docs lark.lark_list_chats --json
kosmo integrations:schema lark.lark_list_chats --json
kosmo integrations:search "Lark Suite" --json
kosmo integrations:list --json

Useful Lark Suite CLI Functions

FunctionTypeParametersDescription
lark.lark_list_chats Read page_size, page_token List chats the current authenticated user belongs to in Lark. Returns chat IDs, names, and metadata for use with other Lark tools.
lark.lark_get_chat Read chat_id Get detailed information about a specific Lark chat, including its name, description, owner, and member count.
lark.lark_create_chat Write chat_id, name Create a new group chat in Lark. Specify a chat ID and name for the new chat.
lark.lark_list_messages Read chat_id, page_size, page_token List messages in a specific Lark chat. Returns message IDs, sender info, content, and timestamps.
lark.lark_send_message Write chat_id, content, msg_type Send a message to a specific Lark chat. Supports text and rich message types.
lark.lark_list_members Read chat_id, page_size, page_token List members of a specific Lark chat. Returns member IDs, names, and roles.
lark.lark_get_current_user Read none Get information about the currently authenticated Lark user, including name, user ID, and avatar.

Automation Notes

Related Lark Suite CLI Pages