webflow-automation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWebflow Automation via Rube MCP
基于Rube MCP的Webflow自动化操作
Automate Webflow operations including CMS collection management, site publishing, page inspection, asset uploads, and ecommerce order retrieval through Composio's Webflow toolkit.
通过Composio的Webflow工具包,实现Webflow操作的自动化,包括CMS集合管理、站点发布、页面检查、资产上传和电商订单查询。
Prerequisites
前置条件
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Webflow connection via with toolkit
RUBE_MANAGE_CONNECTIONSwebflow - Always call first to get current tool schemas
RUBE_SEARCH_TOOLS
- 必须已连接Rube MCP(需提供RUBE_SEARCH_TOOLS)
- 通过并使用工具包
RUBE_MANAGE_CONNECTIONS建立有效的Webflow连接webflow - 请始终先调用以获取最新的工具模式
RUBE_SEARCH_TOOLS
Setup
设置步骤
Get Rube MCP: Add as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
https://rube.app/mcp- Verify Rube MCP is available by confirming responds
RUBE_SEARCH_TOOLS - Call with toolkit
RUBE_MANAGE_CONNECTIONSwebflow - If connection is not ACTIVE, follow the returned auth link to complete Webflow OAuth
- Confirm connection status shows ACTIVE before running any workflows
获取Rube MCP:在客户端配置中添加作为MCP服务器。无需API密钥 —— 只需添加端点即可使用。
https://rube.app/mcp- 确认可响应,以此验证Rube MCP是否可用
RUBE_SEARCH_TOOLS - 调用并指定工具包
RUBE_MANAGE_CONNECTIONSwebflow - 如果连接未处于ACTIVE状态,请按照返回的授权链接完成Webflow OAuth认证
- 在运行任何工作流之前,确认连接状态显示为ACTIVE
Core Workflows
核心工作流
1. Manage CMS Collection Items
1. 管理CMS集合项
When to use: User wants to create, update, list, or delete items in Webflow CMS collections (blog posts, products, team members, etc.)
Tool sequence:
- - List sites to find the target site_id [Prerequisite]
WEBFLOW_LIST_WEBFLOW_SITES - - List all collections for the site [Prerequisite]
WEBFLOW_LIST_COLLECTIONS - - Get collection schema to find valid field slugs [Prerequisite for create/update]
WEBFLOW_GET_COLLECTION - - List existing items with filtering and pagination [Optional]
WEBFLOW_LIST_COLLECTION_ITEMS - - Get a specific item's full details [Optional]
WEBFLOW_GET_COLLECTION_ITEM - - Create a new item with field data [Required for creation]
WEBFLOW_CREATE_COLLECTION_ITEM - - Update an existing item's fields [Required for updates]
WEBFLOW_UPDATE_COLLECTION_ITEM - - Permanently remove an item [Optional]
WEBFLOW_DELETE_COLLECTION_ITEM - - Publish changes to make them live [Optional]
WEBFLOW_PUBLISH_SITE
Key parameters for CREATE_COLLECTION_ITEM:
- : 24-character hex string from LIST_COLLECTIONS
collection_id - : Object with field slug keys (NOT display names); must include
field_dataandnameslug - : Display name for the item
field_data.name - : URL-friendly identifier (lowercase, hyphens, no spaces)
field_data.slug - : Boolean to create as draft (default false)
is_draft
Key parameters for UPDATE_COLLECTION_ITEM:
- : Collection identifier
collection_id - : 24-character hex MongoDB ObjectId of the existing item
item_id - : Object with field slug keys and new values
fields - : Boolean to publish changes immediately (default false)
live
Field value types:
- Text/Email/Link/Date: string
- Number: integer or float
- Boolean: true/false
- Image:
{"url": "...", "alt": "...", "fileId": "..."} - Multi-reference: array of reference ID strings
- Multi-image: array of image objects
- Option: option ID string
Pitfalls:
- Field keys must use the exact field from the collection schema, NOT display names
slug - Always call first to retrieve the schema and identify correct field slugs
GET_COLLECTION - requires
CREATE_COLLECTION_ITEMandnameinslugfield_data - cannot create new items; it requires a valid existing
UPDATE_COLLECTION_ITEMitem_id - must be a 24-character hexadecimal MongoDB ObjectId
item_id - Slug must be lowercase alphanumeric with hyphens:
^[a-z0-9]+(?:-[a-z0-9]+)*$ - CMS items are staged; use or set
PUBLISH_SITEto push to productionlive: true
适用场景:用户想要在Webflow CMS集合(博客文章、产品、团队成员等)中创建、更新、列出或删除项
工具执行顺序:
- - 列出站点以找到目标site_id [前置步骤]
WEBFLOW_LIST_WEBFLOW_SITES - - 列出该站点的所有集合 [前置步骤]
WEBFLOW_LIST_COLLECTIONS - - 获取集合模式以找到有效的字段别名 [创建/更新操作的前置步骤]
WEBFLOW_GET_COLLECTION - - 列出现有项,支持过滤和分页 [可选]
WEBFLOW_LIST_COLLECTION_ITEMS - - 获取特定项的完整详情 [可选]
WEBFLOW_GET_COLLECTION_ITEM - - 使用字段数据创建新项 [创建操作必需]
WEBFLOW_CREATE_COLLECTION_ITEM - - 更新现有项的字段 [更新操作必需]
WEBFLOW_UPDATE_COLLECTION_ITEM - - 永久删除某个项 [可选]
WEBFLOW_DELETE_COLLECTION_ITEM - - 发布更改使其生效 [可选]
WEBFLOW_PUBLISH_SITE
CREATE_COLLECTION_ITEM的关键参数:
- : 来自LIST_COLLECTIONS的24位十六进制字符串
collection_id - : 包含字段别名键的对象(而非显示名称);必须包含
field_data和nameslug - : 项的显示名称
field_data.name - : URL友好的标识符(小写、连字符分隔、无空格)
field_data.slug - : 布尔值,设置是否以草稿形式创建(默认值为false)
is_draft
UPDATE_COLLECTION_ITEM的关键参数:
- : 集合标识符
collection_id - : 现有项的24位十六进制MongoDB ObjectId
item_id - : 包含字段别名键和新值的对象
fields - : 布尔值,设置是否立即发布更改(默认值为false)
live
字段值类型:
- 文本/邮箱/链接/日期: 字符串
- 数字: 整数或浮点数
- 布尔值: true/false
- 图片:
{"url": "...", "alt": "...", "fileId": "..."} - 多引用: 引用ID字符串数组
- 多图片: 图片对象数组
- 选项: 选项ID字符串
注意事项:
- 字段键必须使用集合模式中的精确字段,而非显示名称
slug - 请始终先调用以获取模式并确定正确的字段别名
GET_COLLECTION - 要求
CREATE_COLLECTION_ITEM中包含field_data和nameslug - 无法创建新项;它需要有效的现有
UPDATE_COLLECTION_ITEMitem_id - 必须是24位十六进制的MongoDB ObjectId
item_id - Slug必须是小写字母数字加连字符,符合正则表达式:
^[a-z0-9]+(?:-[a-z0-9]+)*$ - CMS项处于暂存状态;需使用或设置
PUBLISH_SITE才能推送到生产环境live: true
2. Manage Sites and Publishing
2. 管理站点与发布
When to use: User wants to list sites, inspect site configuration, or publish staged changes
Tool sequence:
- - List all accessible sites [Required]
WEBFLOW_LIST_WEBFLOW_SITES - - Get detailed site metadata including domains and settings [Optional]
WEBFLOW_GET_SITE_INFO - - Deploy all staged changes to live site [Required for publishing]
WEBFLOW_PUBLISH_SITE
Key parameters for PUBLISH_SITE:
- : Site identifier from LIST_WEBFLOW_SITES
site_id - : Array of custom domain ID strings (from GET_SITE_INFO)
custom_domains - : Boolean to publish to
publish_to_webflow_subdomain{shortName}.webflow.io - At least one of or
custom_domainsmust be specifiedpublish_to_webflow_subdomain
Pitfalls:
- republishes ALL staged changes for selected domains -- verify no unintended drafts are pending
PUBLISH_SITE - Rate limit: 1 successful publish per minute
- For sites without custom domains, must set
publish_to_webflow_subdomain: true - expects domain IDs (hex strings), not domain names
custom_domains - Publishing is a production action -- always confirm with the user first
适用场景:用户想要列出站点、检查站点配置或发布暂存的更改
工具执行顺序:
- - 列出所有可访问的站点 [必需]
WEBFLOW_LIST_WEBFLOW_SITES - - 获取站点的详细元数据,包括域名和设置 [可选]
WEBFLOW_GET_SITE_INFO - - 将所有暂存的更改部署到线上站点 [发布操作必需]
WEBFLOW_PUBLISH_SITE
PUBLISH_SITE的关键参数:
- : 来自LIST_WEBFLOW_SITES的站点标识符
site_id - : 自定义域名ID字符串数组(来自GET_SITE_INFO)
custom_domains - : 布尔值,设置是否发布到
publish_to_webflow_subdomain{shortName}.webflow.io - 必须至少指定或
custom_domains中的一个publish_to_webflow_subdomain
注意事项:
- 会重新发布所选域名的所有暂存更改——请确认没有未预期的草稿待处理
PUBLISH_SITE - 速率限制:每分钟最多1次成功发布
- 对于没有自定义域名的站点,必须设置
publish_to_webflow_subdomain: true - 需要域名ID(十六进制字符串),而非域名名称
custom_domains - 发布是生产环境操作——请始终先与用户确认
3. Manage Pages
3. 管理页面
When to use: User wants to list pages, inspect page metadata, or examine page DOM structure
Tool sequence:
- - Find the target site_id [Prerequisite]
WEBFLOW_LIST_WEBFLOW_SITES - - List all pages for a site with pagination [Required]
WEBFLOW_LIST_PAGES - - Get detailed metadata for a specific page [Optional]
WEBFLOW_GET_PAGE - - Get the DOM/content node structure of a static page [Optional]
WEBFLOW_GET_PAGE_DOM
Key parameters:
- : Site identifier (required for list pages)
site_id - : 24-character hex page identifier
page_id - : Optional locale filter for multi-language sites
locale_id - : Max results per page (max 100)
limit - : Pagination offset
offset
Pitfalls:
- paginates via offset/limit; iterate when sites have many pages
LIST_PAGES - Page IDs are 24-character hex strings matching pattern
^[0-9a-fA-F]{24}$ - returns the node structure, not rendered HTML
GET_PAGE_DOM - Pages include both static and CMS-driven pages
适用场景:用户想要列出页面、检查页面元数据或查看页面DOM结构
工具执行顺序:
- - 找到目标site_id [前置步骤]
WEBFLOW_LIST_WEBFLOW_SITES - - 列出站点的所有页面,支持分页 [必需]
WEBFLOW_LIST_PAGES - - 获取特定页面的详细元数据 [可选]
WEBFLOW_GET_PAGE - - 获取静态页面的DOM/内容节点结构 [可选]
WEBFLOW_GET_PAGE_DOM
关键参数:
- : 站点标识符(列出页面时必需)
site_id - : 24位十六进制页面标识符
page_id - : 多语言站点的可选区域过滤器
locale_id - : 每页最大结果数(最多100)
limit - : 分页偏移量
offset
注意事项:
- 使用偏移量分页;当站点有大量页面时需循环处理
LIST_PAGES - 页面ID是符合正则表达式的24位十六进制字符串
^[0-9a-fA-F]{24}$ - 返回节点结构,而非渲染后的HTML
GET_PAGE_DOM - 页面包括静态页面和CMS驱动的页面
4. Upload Assets
4. 上传资产
When to use: User wants to upload images, files, or other assets to a Webflow site
Tool sequence:
- - Find the target site_id [Prerequisite]
WEBFLOW_LIST_WEBFLOW_SITES - - Upload a file with base64-encoded content [Required]
WEBFLOW_UPLOAD_ASSET
Key parameters:
- : Site identifier
site_id - : Name of the file (e.g.,
file_name)"logo.png" - : Base64-encoded binary content of the file (NOT a placeholder or URL)
file_content - : MIME type (e.g.,
content_type,"image/png","image/jpeg")"application/pdf" - : MD5 hash of the raw file bytes (32-character hex string)
md5 - : Optional folder placement
asset_folder_id
Pitfalls:
- must be actual base64-encoded data, NOT a variable reference or placeholder
file_content - must be computed from the raw bytes, not from the base64 string
md5 - This is a two-step process internally: generates an S3 pre-signed URL, then uploads
- Large files may encounter timeouts; keep uploads reasonable in size
适用场景:用户想要将图片、文件或其他资产上传到Webflow站点
工具执行顺序:
- - 找到目标site_id [前置步骤]
WEBFLOW_LIST_WEBFLOW_SITES - - 上传包含base64编码内容的文件 [必需]
WEBFLOW_UPLOAD_ASSET
关键参数:
- : 站点标识符
site_id - : 文件名(例如
file_name)"logo.png" - : 文件的base64编码二进制内容(而非占位符或URL)
file_content - : MIME类型(例如
content_type、"image/png"、"image/jpeg")"application/pdf" - : 原始文件字节的MD5哈希值(32位十六进制字符串)
md5 - : 可选的文件夹位置
asset_folder_id
注意事项:
- 必须是实际的base64编码数据,而非变量引用或占位符
file_content - 必须从原始字节计算得出,而非从base64字符串计算
md5 - 这是一个内部两步流程:生成S3预签名URL,然后上传
- 大文件可能会超时;请控制上传文件的大小
5. Manage Ecommerce Orders
5. 管理电商订单
When to use: User wants to view ecommerce orders from a Webflow site
Tool sequence:
- - Find the site with ecommerce enabled [Prerequisite]
WEBFLOW_LIST_WEBFLOW_SITES - - List all orders with optional status filtering [Required]
WEBFLOW_LIST_ORDERS - - Get detailed information for a specific order [Optional]
WEBFLOW_GET_ORDER
Key parameters:
- : Site identifier (must have ecommerce enabled)
site_id - : Specific order identifier for detailed retrieval
order_id - : Filter orders by status
status
Pitfalls:
- Ecommerce must be enabled on the Webflow site for order endpoints to work
- Order endpoints are read-only; no create/update/delete for orders through these tools
适用场景:用户想要查看Webflow站点的电商订单
工具执行顺序:
- - 找到启用了电商功能的站点 [前置步骤]
WEBFLOW_LIST_WEBFLOW_SITES - - 列出所有订单,支持按状态过滤 [必需]
WEBFLOW_LIST_ORDERS - - 获取特定订单的详细信息 [可选]
WEBFLOW_GET_ORDER
关键参数:
- : 站点标识符(必须已启用电商功能)
site_id - : 用于详细查询的特定订单标识符
order_id - : 按状态过滤订单
status
注意事项:
- 只有当Webflow站点启用了电商功能时,订单端点才能正常工作
- 订单端点是只读的;无法通过这些工具创建/更新/删除订单
Common Patterns
通用模式
ID Resolution
ID解析
Webflow uses 24-character hexadecimal IDs throughout:
- Site ID: -- find by name, capture
WEBFLOW_LIST_WEBFLOW_SITESid - Collection ID: with
WEBFLOW_LIST_COLLECTIONSsite_id - Item ID: with
WEBFLOW_LIST_COLLECTION_ITEMScollection_id - Page ID: with
WEBFLOW_LIST_PAGESsite_id - Domain IDs: -- found in
WEBFLOW_GET_SITE_INFOarraycustomDomains - Field slugs: -- found in collection
WEBFLOW_GET_COLLECTIONarrayfields
Webflow全程使用24位十六进制ID:
- 站点ID:—— 按名称查找,获取
WEBFLOW_LIST_WEBFLOW_SITESid - 集合ID:使用调用
site_id获取WEBFLOW_LIST_COLLECTIONS - 项ID:使用调用
collection_id获取WEBFLOW_LIST_COLLECTION_ITEMS - 页面ID:使用调用
site_id获取WEBFLOW_LIST_PAGES - 域名ID:—— 在
WEBFLOW_GET_SITE_INFO数组中找到customDomains - 字段别名:—— 在集合
WEBFLOW_GET_COLLECTION数组中找到fields
Pagination
分页
Webflow uses offset-based pagination:
- : Starting index (0-based)
offset - : Items per page (max 100)
limit - Increment offset by limit until fewer results than limit are returned
- Available on: LIST_COLLECTION_ITEMS, LIST_PAGES
Webflow使用基于偏移量的分页:
- : 起始索引(从0开始)
offset - : 每页项数(最多100)
limit - 每次将偏移量增加limit,直到返回的结果数少于limit
- 支持分页的工具:LIST_COLLECTION_ITEMS、LIST_PAGES
CMS Workflow
CMS工作流
Typical CMS content creation flow:
- Get site_id from LIST_WEBFLOW_SITES
- Get collection_id from LIST_COLLECTIONS
- Get field schema from GET_COLLECTION (to learn field slugs)
- Create/update items using correct field slugs
- Publish site to make changes live
典型的CMS内容创建流程:
- 从LIST_WEBFLOW_SITES获取site_id
- 从LIST_COLLECTIONS获取collection_id
- 从GET_COLLECTION获取字段模式(以了解字段别名)
- 使用正确的字段别名创建/更新项
- 发布站点使更改生效
Known Pitfalls
已知注意事项
ID Formats
ID格式
- All Webflow IDs are 24-character hexadecimal strings (MongoDB ObjectIds)
- Example:
580e63fc8c9a982ac9b8b745 - Pattern:
^[0-9a-fA-F]{24}$ - Invalid IDs return 404 errors
- 所有Webflow ID都是24位十六进制字符串(MongoDB ObjectIds)
- 示例:
580e63fc8c9a982ac9b8b745 - 正则模式:
^[0-9a-fA-F]{24}$ - 无效ID会返回404错误
Field Slugs vs Display Names
字段别名与显示名称
- CMS operations require field values, NOT display names
slug - A field with displayName "Author Name" might have slug
author-name - Always call to discover correct field slugs
GET_COLLECTION - Using wrong field names silently ignores the data or causes validation errors
- CMS操作需要字段的值,而非显示名称
slug - 显示名称为“Author Name”的字段,其别名可能是
author-name - 请始终调用以发现正确的字段别名
GET_COLLECTION - 使用错误的字段名会静默忽略数据或导致验证错误
Publishing
发布
- deploys ALL staged changes, not just specific items
PUBLISH_SITE - Rate limited to 1 publish per minute
- Must specify at least one domain target (custom or webflow subdomain)
- This is a production-affecting action; always confirm intent
- 会部署所有暂存更改,而非仅特定项
PUBLISH_SITE - 速率限制为每分钟1次发布
- 必须至少指定一个目标域名(自定义或Webflow子域名)
- 这是影响生产环境的操作;请始终确认用户意图
Authentication Scopes
认证权限
- Different operations require different OAuth scopes: ,
sites:read,cms:read,cms:writepages:read - A 403 error typically means missing OAuth scopes
- Check connection permissions if operations fail with authorization errors
- 不同的操作需要不同的OAuth权限:、
sites:read、cms:read、cms:writepages:read - 403错误通常表示缺少OAuth权限
- 如果操作因授权错误失败,请检查连接权限
Destructive Operations
破坏性操作
- permanently removes CMS items
DELETE_COLLECTION_ITEM - makes all staged changes live immediately
PUBLISH_SITE - Always confirm with the user before executing these actions
- 会永久删除CMS项
DELETE_COLLECTION_ITEM - 会立即将所有暂存更改推送到线上
PUBLISH_SITE - 在执行这些操作之前,请始终与用户确认
Quick Reference
快速参考
| Task | Tool Slug | Key Params |
|---|---|---|
| List sites | | (none) |
| Get site info | | |
| Publish site | | |
| List collections | | |
| Get collection schema | | |
| List collection items | | |
| Get collection item | | |
| Create collection item | | |
| Update collection item | | |
| Delete collection item | | |
| List pages | | |
| Get page | | |
| Get page DOM | | |
| Upload asset | | |
| List orders | | |
| Get order | | |
| 任务 | 工具别名 | 关键参数 |
|---|---|---|
| 列出站点 | | 无 |
| 获取站点信息 | | |
| 发布站点 | | |
| 列出集合 | | |
| 获取集合模式 | | |
| 列出集合项 | | |
| 获取集合项 | | |
| 创建集合项 | | |
| 更新集合项 | | |
| 删除集合项 | | |
| 列出页面 | | |
| 获取页面 | | |
| 获取页面DOM | | |
| 上传资产 | | |
| 列出订单 | | |
| 获取订单 | | |
When to Use
适用场景
This skill is applicable to execute the workflow or actions described in the overview.
本技能适用于执行概述中描述的工作流或操作。