---
name: ai-kit-components
description: Inspect AI Kit components and knowledge sync
---
# Inspect AI Kit components and knowledge sync

Inspect the tools advertised by the connected site before invoking an ability. Use the exposed name and input schema for that connection; availability and permissions vary.

1. Call `smartcloud-ai-kit/get-runtime-capabilities` and `smartcloud-ai-kit/list-components` to inspect readiness and available components.
2. Call `smartcloud-ai-kit/get-component-schema` with the selected `component`. Build `spec` from the returned semantic schema and current site configuration.
3. Call `smartcloud-ai-kit/materialize-component` with `component` and `spec`, then `smartcloud-ai-kit/validate-block-tree` with the returned candidate blocks when validation is needed. Materialization creates canonical blocks without saving a post. Use the site's existing governed draft workflow to place them; do not claim they were saved or published.

Respect missing requirements and validation errors. Do not invent component attributes or bypass site restrictions.

Components include feature, doc-search and kb-section. For knowledge sync inspect `smartcloud-ai-kit/list-knowledge-metadata`, `get-knowledge-sync-policy`, `get-knowledge-sync-status` and `get-knowledge-metadata-diff` using their advertised schemas. `request-knowledge-sync` requires `confirm_review_boundary` true and human approval; it requests a scheduled pass and preserves configured review boundaries. A request or local status does not prove ingestion or retrieval succeeded.

For an individual published post, use `smartcloud-ai-kit-explain-knowledge-sync-post` with its WordPress `post_id` when the site grants Site Builder access. The response identifies the effective review policy and explains eligibility for capture. Use the sync status for downstream processing. Private posts require WordPress read permission.

For Knowledge Sync administration, read `get-knowledge-sync-config` first. Use `settings_revision` with `update-knowledge-sync-settings` and `policies_revision` with `update-knowledge-sync-policy`. Patch the selected fields and reread on a conflict. Choose a registered post type, public taxonomies, and compatible structured fields returned by the configuration tool. New policies start with manual KB review. Use WordPress admin to select automatic approval, disable an active policy, or remove a release gate with active policies. Use `request-knowledge-sync` with `post_id` to recapture a chosen eligible post before starting the normal sync pass. Use the queue and ingestion status to verify the outcome.
