.NET API
ToolInputResponse
Tracon.AspNetCore.dllThe answer to one request for user input that suspended a tool call (MCP elicitation).
public sealed record ToolInputResponse : IEquatable<ToolInputResponse>- Inheritance
- object ← ToolInputResponse
- Implements
- IEquatable<ToolInputResponse>
- Inherited Members
- object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”ToolApprovalDecision’s sibling on the run request: the run response carried the request, and the caller sends the answer back through this contract in the next run of the same session.
Constructors
Section titled “Constructors”ToolInputResponse()
Section titled “ ToolInputResponse()”public ToolInputResponse()Properties
Section titled “Properties”Action
Section titled “ Action”What the user did with the request.
public required ToolInputAction Action { get; init; }Property Value
Section titled “Property Value”Content
Section titled “ Content”The values of the requested fields, by field name. Meaningful only with ToolInputAction.Accept; sending it with another action is rejected.
public IReadOnlyDictionary<string, JsonElement>? Content { get; init; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, JsonElement>?
Remarks
Section titled “Remarks”Each value must fit the field the server declared: a string, a number, an integer, a boolean or one of the declared options. A field the request marks as required must be present. A value goes to the MCP server that asked and nowhere else: it is not kept in the session, and it is never written to the audit log or to the run’s event stream.
RequestId
Section titled “ RequestId”Identifier of the request this answers. Matches the requestId the run response carried.
public required string RequestId { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(ToolInputResponse?)
Section titled “ Equals(ToolInputResponse?)”public bool Equals(ToolInputResponse? other)Parameters
Section titled “Parameters”other ToolInputResponse?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(ToolInputResponse?, ToolInputResponse?)
Section titled “ operator ==(ToolInputResponse?, ToolInputResponse?)”public static bool operator ==(ToolInputResponse? left, ToolInputResponse? right)Parameters
Section titled “Parameters”left ToolInputResponse?
right ToolInputResponse?
Returns
Section titled “Returns”operator !=(ToolInputResponse?, ToolInputResponse?)
Section titled “ operator !=(ToolInputResponse?, ToolInputResponse?)”public static bool operator !=(ToolInputResponse? left, ToolInputResponse? right)Parameters
Section titled “Parameters”left ToolInputResponse?
right ToolInputResponse?