Table of Contents

Class PaginatedResult

Namespace
ModelContextProtocol.Protocol.Messages
Assembly
ModelContextProtocol.dll

Provides a base class for result payloads that support cursor-based pagination.

public class PaginatedResult
Inheritance
PaginatedResult
Derived
Inherited Members

Remarks

Pagination allows API responses to be broken into smaller, manageable chunks when there are potentially many results to return or when dynamically-computed results may incur measurable latency.

Classes that inherit from PaginatedResult implement cursor-based pagination, where the NextCursor property serves as an opaque token pointing to the next set of results.

Properties

NextCursor

Gets or sets an opaque token representing the pagination position after the last returned result.

public string? NextCursor { get; set; }

Property Value

string

Remarks

When a paginated result has more data available, the NextCursor property will contain a non-null token that can be used in subsequent requests to fetch the next page. When there are no more results to return, the NextCursor property will be null.