batch_get_bitable_records
Retrieve multiple records (up to 100) from Feishu Bitable multidimensional tables in a single operation using specified record IDs.
Instructions
批量获取多维表格记录(最多100条)
参数:
app_token: 多维表格的token
table_id: 数据表ID
record_ids: 记录ID列表
返回:
记录信息
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_token | Yes | ||
| table_id | Yes | ||
| record_ids | Yes |
Implementation Reference
- The main execution logic for the 'batch_get_bitable_records' tool. It uses the Lark API to batch retrieve records from a Bitable app table given app_token, table_id, and list of record_ids.@mcp.tool() @handle_feishu_error def batch_get_bitable_records( app_token: str, table_id: str, record_ids: list[str] ) -> str: """ 批量获取多维表格记录(最多100条) 参数: app_token: 多维表格的token table_id: 数据表ID record_ids: 记录ID列表 返回: 记录信息 """ client = get_client() request = ( BatchGetAppTableRecordRequest.builder() .app_token(app_token) .table_id(table_id) .request_body( lark.BatchGetAppTableRecordRequestBody.builder() .records(record_ids) .build() ) .build() ) response = client.bitable.v1.app_table_record.batch_get(request) return lark.JSON.marshal(response.data, indent=4)
- src/yuppie_mcp_feishu/__init__.py:21-21 (registration)Registration call for the bitable_record_tools, which includes the batch_get_bitable_records tool via decorator in the register function.register_bitable_record_tools(mcp)