- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents a request message in the JSON-RPC protocol.
public sealed class JsonRpcRequest : JsonRpcMessageWithId
- Inheritance
-
JsonRpcRequest
- Inherited Members
Properties
Method
Gets or sets the name of the method to invoke.
[JsonPropertyName("method")]
public required string Method { get; set; }
Property Value
Params
Gets or sets optional parameters for the method.
[JsonPropertyName("params")]
public JsonNode? Params { get; set; }