ACP v2 (Preview) TypeScript SDK — UNSTABLE - v2.12.1
    Preparing search index...

    Type Alias SkillReferenceExperimental

    UNSTABLE

    This capability is not part of the spec yet, and may be removed or changed at any point.

    A reference to a skill that the user invokes with a prompt.

    The Client sends it in session/prompt to invoke a skill entry from the session's command list. The Agent MUST treat each reference as the user explicitly invoking that skill for this prompt, and applies the skill to the prompt as a whole. The reference carries no input.

    An Agent that advertises the session.prompt.skill capability accepts one skill reference per prompt, as the first content block. An Agent that also advertises session.prompt.skill.inline accepts any number of them, at any position. Clients MUST NOT send a skill reference that the Agent's capability does not allow.

    The type discriminator value is skill.

    type SkillReference = {
        name: string;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    name: string

    The name of a skill entry in the session's current command list.

    Required and non-null. The Agent MUST reject the prompt with -32602 when it cannot resolve the name to a skill the user can invoke.

    _meta?: { [key: string]: unknown } | null

    The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Omitted and null are equivalent and mean no metadata. Implementations MUST NOT assign meaning to keys they do not recognize.

    See protocol docs: Extensibility