Chatlog HTTP CLI Skill
Purpose
Use CLI to call all Chatlog HTTP interfaces without opening browser.
Command Entry
chatlog http listchatlog http call ...
Supported Endpoint Aliases
Run chatlog http list to get latest list.
Current aliases:
health->GET /healthping->GET /api/v1/pingsessions->GET /api/v1/sessionshistory->GET /api/v1/historysearch->GET /api/v1/searchunread->GET /api/v1/unreadmembers->GET /api/v1/membersnew_messages->GET /api/v1/new_messagesstats->GET /api/v1/statsfavorites->GET /api/v1/favoritessns_notifications->GET /api/v1/sns_notificationssns_feed->GET /api/v1/sns_feedsns_search->GET /api/v1/sns_searchcontacts->GET /api/v1/contactschatrooms->GET /api/v1/chatroomsdb->GET /api/v1/dbdb_tables->GET /api/v1/db/tablesdb_data->GET /api/v1/db/datadb_query->GET /api/v1/db/querycache_clear->POST /api/v1/cache/clearimage->GET /image/{key}video->GET /video/{key}file->GET /file/{key}voice->GET /voice/{key}data->GET /data/{path}mcp->POST /mcpmcp_sse->GET /ssemcp_message->POST /message
Common Flags
--addrserver address, default127.0.0.1:5030--timeoutrequest timeout in seconds--show-statusprint HTTP status--outputsave response body to file
call flags:
--endpointendpoint alias--pathraw path--methodHTTP method--query key=valuerepeatable--path-param key=valuereplace{key}in path template--header key=valuerepeatable--bodyraw request body--body-filerequest body file
Examples
# list endpoints
chatlog http list
# history
chatlog http call --endpoint history --query chat=华服饲料运输信息群 --query limit=100 --query format=json
# search
chatlog http call --endpoint search --query keyword=图片 --query limit=20
# db query
chatlog http call --endpoint db_query \
--query group=message \
--query file=message_0.db \
--query sql='select local_id,create_time from MSG limit 5'
# media by key
chatlog http call --endpoint image --path-param key=b309f8f81716aff9e1c9dded3bec74e7
# clear cache
chatlog http call --endpoint cache_clear --method POST
Notes
- Most
/api/v1/*endpoints default to YAML output unlessformat=jsonis provided. --endpointand--pathcan be used together;--pathoverrides endpoint path.
Source: teest114514/chatlog_alpha — distributed by TomeVault.