create_bitable_app
Create a Feishu Bitable application to organize data in multidimensional tables. Specify a name and optional folder location to generate an app with unique token for structured data management.
Instructions
创建多维表格应用
参数:
name: 多维表格名称
folder_token: (可选) 文件夹token,指定创建位置
返回:
JSON格式的应用信息,包含app_token等
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| folder_token | No |
Implementation Reference
- The core handler function for the 'create_bitable_app' tool. It uses the Lark API to create a Bitable app with the given name and optional folder token, returning the JSON response.@mcp.tool() @handle_feishu_error def create_bitable_app(name: str, folder_token: str = "") -> str: """ 创建多维表格应用 参数: name: 多维表格名称 folder_token: (可选) 文件夹token,指定创建位置 返回: JSON格式的应用信息,包含app_token等 """ client = get_client() request = ( CreateAppRequest.builder() .request_body( lark.App.builder().name(name).folder_token(folder_token).build() ) .build() ) response = client.bitable.v1.app.create(request) return lark.JSON.marshal(response.data, indent=4)
- src/yuppie_mcp_feishu/__init__.py:20-20 (registration)Registers the Bitable app tools, including 'create_bitable_app', by calling the registration function on the MCP server instance.register_bitable_app_tools(mcp)
- src/yuppie_mcp_feishu/tools/bitable_app.py:16-18 (registration)The registration function that defines and registers the 'create_bitable_app' tool (and copy) using @mcp.tool() decorators.def register_bitable_app_tools(mcp: FastMCP): """注册多维表格应用工具"""