Class Result
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Provides a base class for result payloads.
public abstract class Result
- Inheritance
-
Result
- Derived
- Inherited Members
Properties
Meta
Gets or sets metadata reserved by MCP for protocol-level metadata.
[JsonPropertyName("_meta")]
public JsonObject? Meta { get; set; }
Property Value
Remarks
Implementations must not make assumptions about its contents.
ResultType
Gets or sets the type of the result, which allows the client to determine how to parse the result object.
[JsonPropertyName("resultType")]
public string? ResultType { get; set; }
Property Value
Remarks
When absent or set to "complete", the result is a normal completed response.
When set to "input_required", the result is an InputRequiredResult indicating
that additional input is needed before the request can be completed.
When set to "task", the result is a CreateTaskResult indicating that the server
has created a long-running task in lieu of returning the result directly.