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

    Type Alias SessionCapabilities

    Session capabilities supported by the Agent.

    Supplying {} means the Agent supports the baseline session methods: session/new, session/list, session/resume, session/close, session/prompt, session/cancel, and session/update.

    Agents that support sessions MAY support additional session methods, prompt content types, and MCP transports by specifying additional capabilities.

    See protocol docs: Session Capabilities

    type SessionCapabilities = {
        prompt?: PromptCapabilities | null;
        mcp?: McpCapabilities | null;
        delete?: SessionDeleteCapabilities | null;
        additionalDirectories?: SessionAdditionalDirectoriesCapabilities | null;
        systemPrompt?: SessionSystemPromptCapabilities | null;
        fork?: SessionForkCapabilities | null;
        archive?: SessionArchiveCapabilities | null;
        status?: SessionStatusCapabilities | null;
        options?: SessionOptionsCapabilities | null;
        title?: SessionTitleCapabilities | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    prompt?: PromptCapabilities | null

    Prompt capabilities supported by the Agent in session/prompt requests.

    Optional. Omitted and null are equivalent and mean the Agent does not advertise any prompt extensions beyond the baseline text and resource-link content required by session/prompt.

    mcp?: McpCapabilities | null

    MCP capabilities supported by the Agent for session lifecycle requests.

    Optional. Omitted and null are equivalent and mean the Agent does not advertise MCP server transport support for sessions.

    Whether the Agent supports session/delete.

    Optional. Omitted and null are equivalent and mean the Agent does not advertise support. Supplying {} means the Agent supports deleting sessions from session/list.

    additionalDirectories?: SessionAdditionalDirectoriesCapabilities | null

    Whether the Agent supports additionalDirectories on supported session lifecycle requests.

    Optional. Omitted and null are equivalent and mean the Agent does not advertise support. Supplying {} means the Agent supports additionalDirectories on supported session lifecycle requests.

    Agents MAY return SessionInfo.additionalDirectories to report the complete ordered additional-root list associated with a listed session.

    systemPrompt?: SessionSystemPromptCapabilities | null

    Whether the Agent supports systemPrompt on session lifecycle requests.

    Optional. Omitted and null are equivalent and mean the Agent does not advertise support. Supplying {} means the Agent supports systemPrompt in append mode.

    UNSTABLE

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

    Whether the Agent supports session/fork.

    Optional. Omitted and null are equivalent and mean the Agent does not advertise support. Supplying {} means the Agent supports forking sessions.

    UNSTABLE

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

    Whether the Agent supports session/archive and session/unarchive.

    Optional. Omitted and null are equivalent and mean the Agent does not advertise support. Supplying {} means the Agent supports both methods, the archived filter on session/list, and SessionInfo.archived.

    UNSTABLE

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

    Whether the Agent supports session/status.

    Optional. Omitted and null are equivalent and mean the Agent does not advertise support. Supplying {} means the Agent supports checking session status.

    UNSTABLE

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

    Whether the Agent supports session/options.

    Optional. Omitted or null both mean the Agent does not advertise support. Supplying {} means the Agent supports session/options and accepts initial config option values on session setup requests.

    UNSTABLE

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

    Whether the Agent supports session/set_title.

    Agents report titles through session/list and session_info_update without this capability. It only advertises that Clients can set titles.

    Optional. Omitted and null are equivalent and mean the Agent does not advertise support. Supplying {} means the Agent supports setting session titles.

    _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