count_cms_items
Count CMS Items
Count the number of items in a Plasmic CMS model, optionally filtered by field conditions. Uses the same query syntax as the Query CMS Items tool but returns only the count.
count_cms_items
Count the number of items in a Plasmic CMS model, optionally filtered by field conditions. Uses the same query syntax as the Query CMS Items tool but returns only the count.
query_cms_items
Query items from a Plasmic CMS model with optional filtering, pagination, and ordering. Supports a JSON-based query syntax with logical operators (`$and`, `$or`, `$not`) and conditional operators for filtering by field values. Can load draft or published versions and localized content.
get_project_model
Retrieve the full JSON representation of a Plasmic project structure via the Model API. Returns all components, pages, design tokens, metadata, A/B tests, custom targets, and scheduled content. The response includes element trees (TplNodes) for each component.
publish_cms_item
Publish a draft content entry in a Plasmic CMS model, making it publicly visible. Requires the CMS secret token.
delete_cms_item
Permanently delete a content entry from a Plasmic CMS model. This action cannot be undone. Requires the CMS secret token.
create_cms_item
Create a new content entry in a Plasmic CMS model. The item can optionally be published immediately upon creation. Requires the CMS secret token.
render_component
Render a Plasmic-designed page or component as HTML via the Render API. Returns plain HTML that can be embedded anywhere. Supports rendering in preview, published, or versioned mode, with optional JavaScript hydration for interactivity. Component props and global variants can be customized.
update_project
Programmatically create or update components, pages, and design tokens in a Plasmic project via the Write API. Components can be matched by UUID, name, or path for updating. Design tokens support colors, spacing, fonts, shadows, and other styling values. **Requires a project secret token (enterprise only).**
update_cms_item
Update an existing content entry in a Plasmic CMS model. Only the specified fields will be modified. The item can optionally be published after updating. Requires the CMS secret token.
Render Plasmic-designed pages and components as HTML, access project models, and manage CMS content. Render components in preview, published, or versioned modes with customizable props and variants. Retrieve full project structures including components, pages, design tokens, and metadata. Programmatically create and update components, pages, and design tokens. Perform full CRUD operations on headless CMS content: query, count, create, update, delete, and publish items with filtering and localization support. Configure webhooks for project and CMS publish events.
Common questions about connecting Plasmic to AI agents with Metorial.