Test whether a hypothetical user input would activate this skill, and preview the rendered body
skills
Test whether a hypothetical user input would activate this skill, and preview the rendered body
Standalone test surface for a skill (CUJ 26).
Body:
user_input: str (required) — the hypothetical user message
variables: dict[str, str] (optional) — values for {{var}} placeholders
version_id: str (optional) — pin to a specific skill_version; default = latest
Response:
{
would_activate: bool,
matched_triggers: [str, ...], # the trigger_phrases that matched (substring)
rendered_body: str, # body with variables substituted
missing_variables: [str, ...], # {{var}} placeholders the caller didn't fill
skill: {id, name, version_number, content_hash}
}
Activation rule (V1): if any `trigger_phrases` entry appears as a
case-insensitive substring of `user_input`, the skill activates.
Skills with no trigger_phrases always activate (unconditional). This
mirrors the SDK's default SkillRouter substring path. Embedding-
based matching is a separate concern (uses `body_embedding`); not
plumbed into this endpoint yet.
POST
Test whether a hypothetical user input would activate this skill, and preview the rendered body