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

    Type Alias ListSessionsRequest

    Request parameters for listing existing sessions.

    type ListSessionsRequest = {
        cwd?: AbsolutePath | null;
        cursor?: SessionListCursor | null;
        archived?: SessionArchiveFilter | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    cwd?: AbsolutePath | null

    Filter sessions by working directory. Must be an absolute path.

    Only sessions whose cwd is this same directory match. Subdirectories and additionalDirectories don't. Agents MAY normalize paths when comparing.

    Omitted and null are equivalent and mean sessions are not filtered by working directory. Clients keep the same value when following nextCursor.

    cursor?: SessionListCursor | null

    Opaque cursor token from a previous response's nextCursor field for cursor-based pagination

    Omitted and null are equivalent and mean the first page is requested.

    archived?: SessionArchiveFilter | null

    UNSTABLE

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

    Filter sessions by archive state.

    Optional. Omitted and null are equivalent and mean exclude. Only send this when the Agent advertises the session.archive capability. The filter combines with cwd and applies before pagination. Clients keep the same value when following nextCursor.

    _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