一键导入
bitable
Access Lark Bitable databases - list tables, view fields, and read records. Use when user asks about a Bitable, database, or wants to query structured data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Access Lark Bitable databases - list tables, view fields, and read records. Use when user asks about a Bitable, database, or wants to query structured data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Read and write Lark documents - get content as markdown or blocks, create new documents, append content (text, headings, lists, code), list folders. Use when user asks about a Lark doc, wants to read/create/edit a document, or mentions a document URL/ID.
Read and query Lark Sheets (spreadsheets) - list sheets in a spreadsheet, read cell data. Use when user asks about a spreadsheet, wants to read data from a Lark sheet, or mentions a spreadsheet URL/ID.
Manage Lark calendar - view schedule, create/update/delete events, check availability, find meeting slots, RSVP to invitations. Use when user asks about meetings, schedule, availability, or calendar.
Retrieve chat message history, send messages, and manage reactions in Lark - get messages from group chats, private chats, threads, send messages to users or chats, and add/list/remove reactions. Use when user asks about chat messages, conversation history, what was discussed in a group, or wants to send a message or react.
Look up employee information via Lark - find colleagues by ID, list department members, search users by name, search departments. Use when user asks about a person, colleague, job title, department, or org structure.
Read and search emails from Lark Mail via IMAP with local caching. Use when user asks about email, inbox, or messages.
| name | bitable |
| description | Access Lark Bitable databases - list tables, view fields, and read records. Use when user asks about a Bitable, database, or wants to query structured data. |
Access Lark Bitable (database) content via the lark CLI.
Ensure lark is in your PATH, or use the full path to the binary:
lark bitable <command>
lark bitable tables <app_token>
Lists all tables in a Bitable app. The app_token is from the Bitable URL.
For example, if the URL is https://xxx.larksuite.com/base/ABC123xyz, the app_token is ABC123xyz.
Output:
{
"app_token": "ABC123xyz",
"tables": [
{
"table_id": "tblXYZ789",
"name": "Projects"
},
{
"table_id": "tblABC456",
"name": "Tasks"
}
],
"count": 2
}
lark bitable fields <app_token> <table_id>
Lists all fields (columns) in a Bitable table.
Output:
{
"app_token": "ABC123xyz",
"table_id": "tblXYZ789",
"fields": [
{
"field_id": "fldAAA111",
"field_name": "Name",
"type": "text",
"is_primary": true
},
{
"field_id": "fldBBB222",
"field_name": "Status",
"type": "select"
},
{
"field_id": "fldCCC333",
"field_name": "Due Date",
"type": "date"
}
],
"count": 3
}
Field types: text, number, select, multi_select, date, checkbox, person, phone, url, attachment, link, formula, duplex_link, location, group, created_time, created_user, modified_time, modified_user, auto_number
lark bitable records <app_token> <table_id> [--limit N] [--view <view_id>] [--filter <expression>]
Lists records (rows) in a Bitable table.
Options:
--limit: Maximum number of records to retrieve (default: no limit)--view: View ID to filter records--filter: Filter expression (see Lark API docs for syntax)Output:
{
"app_token": "ABC123xyz",
"table_id": "tblXYZ789",
"records": [
{
"record_id": "recAAA111",
"fields": {
"Name": "Project Alpha",
"Status": "In Progress",
"Due Date": 1704067200000
}
},
{
"record_id": "recBBB222",
"fields": {
"Name": "Project Beta",
"Status": "Completed",
"Due Date": 1703462400000
}
}
],
"count": 2,
"has_more": false
}
Note: Date fields return Unix timestamps in milliseconds.
| URL Type | Example | How to Extract |
|---|---|---|
| Bitable app | https://xxx.larksuite.com/base/ABC123xyz | app_token is ABC123xyz |
| Specific table | https://xxx.larksuite.com/base/ABC123xyz?table=tblXYZ789 | app_token is ABC123xyz, table_id is tblXYZ789 |
# 1. List all tables in the Bitable
lark bitable tables ABC123xyz
# 2. See what fields a table has
lark bitable fields ABC123xyz tblXYZ789
# 3. Read records from the table
lark bitable records ABC123xyz tblXYZ789 --limit 100
Errors return JSON:
{
"error": true,
"code": "ERROR_CODE",
"message": "Description"
}
Common error codes:
AUTH_ERROR - Need to run lark auth loginSCOPE_ERROR - Missing bitable permissions. Run lark auth login --add --scopes bitableAPI_ERROR - Lark API issue (often permissions on the specific Bitable)This skill requires the bitable scope group with the bitable:app:readonly scope. If you see a SCOPE_ERROR, add the permissions:
lark auth login --add --scopes bitable
To check current permissions:
lark auth status
--limit to avoid fetching too many records at oncecontact get to resolve names)