copy_bitable_app
Duplicate Feishu Bitable applications by specifying an app token and new name to create identical copies in your workspace for backup or template use.
Instructions
复制多维表格应用
参数:
app_token: 要复制的多维表格token
name: 新多维表格的名称
folder_token: (可选) 文件夹token,指定创建位置
返回:
JSON格式的应用信息
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_token | Yes | ||
| name | Yes | ||
| folder_token | No |
Implementation Reference
- The handler function `copy_bitable_app` that implements the tool logic to copy a Feishu Bitable app using the Lark_oapi client. Includes type annotations, docstring schema, and full execution code.@mcp.tool() @handle_feishu_error def copy_bitable_app(app_token: str, name: str, folder_token: str = "") -> str: """ 复制多维表格应用 参数: app_token: 要复制的多维表格token name: 新多维表格的名称 folder_token: (可选) 文件夹token,指定创建位置 返回: JSON格式的应用信息 """ client = get_client() request = ( CopyAppRequest.builder() .app_token(app_token) .request_body( CopyAppRequestBody.builder() .name(name) .folder_token(folder_token) .build() ) .build() ) response = client.bitable.v1.app.copy(request) return lark.JSON.marshal(response.data, indent=4)
- src/yuppie_mcp_feishu/__init__.py:20-20 (registration)Top-level registration call to register_bitable_app_tools during MCP server initialization, which defines and registers the copy_bitable_app tool.register_bitable_app_tools(mcp)
- src/yuppie_mcp_feishu/tools/bitable_app.py:16-16 (registration)Module-level registration function that defines and registers both create_bitable_app and copy_bitable_app tools using @mcp.tool() decorators.def register_bitable_app_tools(mcp: FastMCP):