Loading...
Loading...
Feishu/Lark Native OpenAPI Exploration: Uncover native OpenAPI interfaces that are not encapsulated by CLI from the official document library. Use this when users' requirements cannot be met by existing lark-* skills or registered commands in lark-cli, and they need to find and call native Feishu OpenAPIs.
npx skill4agent add larksuite/cli lark-openapi-explorerPrerequisites: First readto understand authentication, identity switching and security rules.../lark-shared/SKILL.md
lark-cli apillms.txt ← Top-level index, listing links to all module documents
└─ llms-<module>.txt ← Module document, including function overview + links to underlying API documents
└─ <api-doc>.md ← Complete description of a single API (method/path/parameters/response/error codes)| Brand | Entry URL |
|---|---|
| Feishu | |
| Lark | |
All documents are written in Chinese. If users communicate in English, translate the document content to English before outputting.
# First check if there is a corresponding skill or registered API
lark-cli <possible-service> --helpWebFetch https://open.feishu.cn/llms.txt
→ Extraction question: "List all module document links and find those related to <user requirement keywords>"open.feishu.cnopen.larksuite.comWebFetch https://open.feishu.cn/llms-docs/zh-CN/llms-<module>.txt
→ Extraction question: "Find API descriptions and document links related to <user requirement>"WebFetch https://open.feishu.cn/document/server-docs/.../<api>.md
→ Extraction question: "Return complete API specifications: HTTP method, URL path, path parameters, query parameters, request body fields (name/type/required/description), response fields, required permissions, error codes"lark-cli api# GET request
lark-cli api GET /open-apis/<path> --params '{"key":"value"}'
# POST request
lark-cli api POST /open-apis/<path> --data '{"key":"value"}'
# PUT request
lark-cli api PUT /open-apis/<path> --data '{"key":"value"}'
# DELETE request
lark-cli api DELETE /open-apis/<path>METHOD /open-apis/...lark-cli api--dry-run# Step 1: Confirm CLI has no encapsulation
lark-cli im --help
# → Found no create command related to chat_members
# Step 2-4: Obtain API specifications via document exploration
# → POST /open-apis/im/v1/chats/:chat_id/members
# Step 5: Call the API
lark-cli api POST /open-apis/im/v1/chats/oc_xxx/members \
--data '{"id_list":["ou_xxx","ou_yyy"]}' \
--params '{"member_id_type":"open_id"}'# Step 1: Confirm CLI has no encapsulation
lark-cli im --help
# → No commands related to announcement
# Step 2-4: Explore documents
# → PATCH /open-apis/im/v1/chats/:chat_id/announcement
# Step 5: Call the API
lark-cli api PATCH /open-apis/im/v1/chats/oc_xxx/announcement \
--data '{"revision":"0","requests":["<html>Announcement content</html>"]}'