Skip to main content
Glama

batch_update_bitable_records

Update multiple records in Feishu Bitable tables in bulk operations, handling up to 1000 records at once by specifying record IDs and field values.

Instructions

    批量更新多维表格记录(最多1000条)

    参数:
        app_token: 多维表格的token
        table_id: 数据表ID
        records: 要更新的记录列表,每条记录包含record_id和fields

    返回:
        更新后的记录信息
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_tokenYes
table_idYes
recordsYes

Implementation Reference

  • The main handler function for the 'batch_update_bitable_records' tool. It uses the Lark API to batch update records in a Bitable table, taking app_token, table_id, and a list of records (each with record_id and fields).
    @mcp.tool()
    @handle_feishu_error
    def batch_update_bitable_records(
        app_token: str, table_id: str, records: list[dict]
    ) -> str:
        """
        批量更新多维表格记录(最多1000条)
    
        参数:
            app_token: 多维表格的token
            table_id: 数据表ID
            records: 要更新的记录列表,每条记录包含record_id和fields
    
        返回:
            更新后的记录信息
        """
        client = get_client()
        request = (
            BatchUpdateAppTableRecordRequest.builder()
            .app_token(app_token)
            .table_id(table_id)
            .request_body(
                lark.BatchUpdateAppTableRecordRequestBody.builder()
                .children(records)
                .build()
            )
            .build()
        )
        response = client.bitable.v1.app_table_record.batch_update(request)
        return lark.JSON.marshal(response.data, indent=4)
  • Registers the batch_update_bitable_records tool (along with other bitable record tools) by calling the register_bitable_record_tools function on the MCP instance.
    register_bitable_record_tools(mcp)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZYHB/yuppie-mcp-feishu'

If you have feedback or need assistance with the MCP directory API, please join our Discord server