Class JsonRpcRequest

Assembly: redb.Route.Llm.Mcp.dll

JSON-RPC 2.0 request envelope.

public sealed class JsonRpcRequest

Inheritance

Object→JsonRpcRequest

Properties

Id

Correlation id matching the eventual .

[JsonPropertyName("id")]
public long Id { get; set; }

JsonRpc

Always "2.0".

[JsonPropertyName("jsonrpc")]
public string JsonRpc { get; set; }

Method

RPC method name (e.g. "tools/call").

[JsonPropertyName("method")]
public string Method { get; set; }

Params

Method-specific parameters as a JSON object.

[JsonPropertyName("params")]
public JsonNode? Params { get; set; }