Skip to main content
Glama

update_bitable_record

Modify specific data in a Feishu Bitable record by updating field values for a single entry in a multidimensional table.

Instructions

    更新多维表格中的单条记录

    参数:
        app_token: 多维表格的token
        table_id: 数据表ID
        record_id: 记录ID
        fields: 要更新的字段字典

    返回:
        更新后的记录信息
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_tokenYes
table_idYes
record_idYes
fieldsYes

Implementation Reference

  • The primary handler function implementing the 'update_bitable_record' tool. It uses the Lark_oapi to update a single record in a Bitable app table, decorated with @mcp.tool() for registration and @handle_feishu_error for error handling.
    @mcp.tool()
    @handle_feishu_error
    def update_bitable_record(
        app_token: str, table_id: str, record_id: str, fields: dict
    ) -> str:
        """
        更新多维表格中的单条记录
    
        参数:
            app_token: 多维表格的token
            table_id: 数据表ID
            record_id: 记录ID
            fields: 要更新的字段字典
    
        返回:
            更新后的记录信息
        """
        client = get_client()
        request = (
            UpdateAppTableRecordRequest.builder()
            .app_token(app_token)
            .table_id(table_id)
            .record_id(record_id)
            .request_body(lark.AppTableRecord.builder().fields(fields).build())
            .build()
        )
        response = client.bitable.v1.app_table_record.update(request)
        return lark.JSON.marshal(response.data, indent=4)
  • The call to register_bitable_record_tools(mcp), which defines and registers the update_bitable_record tool among others.
    register_bitable_app_tools(mcp)
    register_bitable_record_tools(mcp)
  • Imports for helper functions: get_client() used to obtain the Feishu client, and handle_feishu_error decorator applied to the tool.
    from ..client import get_client
    from ..exceptions import handle_feishu_error

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