Function buildCapabilityYaml

  • Builds a CAPABILITY.yaml content string for an emergent tool.

    The format matches the schema expected by the capability manifest scanner:

    id: tool:<name>
    kind: tool
    name: <name>
    displayName: <Title Case Name>
    description: <description>
    category: emergent
    tags: [generated, ...]
    inputSchema: { ... }
    outputSchema: { ... }
    skillContent: ./SKILL.md

    Parameters

    Returns string

    CAPABILITY.yaml content string.