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

    Type Alias ListSessionsRequestExperimental

    Request parameters for listing existing sessions.

    type ListSessionsRequest = {
        cwd?: AbsolutePath | null;
        cursor?: SessionListCursor | 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.

    _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