Search Results for

    Show / Hide Table of Contents

    Class McpOutput

    An invocation of a tool on an MCP server. This is both a tool call (from model to user) and a tool call output (from user to model).
    Model > User > And you should send the corresponding output back to the model

    Inheritance
    object
    ConversationItem
    ToolOutput
    McpOutput
    Implements
    IPrompt
    IValidatable
    IHasId<string>
    IMcp
    IJsonArguments
    Inherited Members
    ToolOutput.Index
    ToolOutput.CallId
    ToolOutput.Status
    ConversationItem.Id
    ConversationItem.Type
    ConversationItem.GetPromptText()
    ConversationItem.IsValid()
    ConversationItem.Validate()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class McpOutput : ToolOutput, IPrompt, IValidatable, IHasId<string>, IMcp, IJsonArguments

    Constructors

    | Edit this page View Source

    McpOutput()

    Declaration
    public McpOutput()

    Properties

    | Edit this page View Source

    ApprovalRequestId

    The ID of an associated approval request, if any.

    Declaration
    [JsonProperty("approval_request_id")]
    public string ApprovalRequestId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Arguments

    A JSON string of the arguments passed to the tool.

    Declaration
    [JsonProperty("arguments")]
    public string Arguments { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Error

    The error from the tool call, if any.

    Declaration
    [JsonProperty("error")]
    public McpException Error { get; set; }
    Property Value
    Type Description
    McpException
    | Edit this page View Source

    Name

    Declaration
    [JsonProperty("name")]
    public string Name { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Output

    Declaration
    [JsonProperty("output")]
    public string Output { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ServerLabel

    The label of the MCP server running the tool.

    Declaration
    [JsonProperty("server_label")]
    public string ServerLabel { get; set; }
    Property Value
    Type Description
    string

    Implements

    IPrompt
    IValidatable
    IHasId<TId>
    IMcp
    IJsonArguments

    Extension Methods

    UnifiedApiCallerExtensions.GENResponse(ConversationItem)
    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    CoreLibTypeExtensions.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    IJsonArgumentsExtensions.InvalidateArgumentsCache(IJsonArguments)
    IJsonArgumentsExtensions.PrettyPrint(IJsonArguments, int, string[])
    IJsonArgumentsExtensions.TryGetArguments<T>(IJsonArguments, out T, JsonSerializerSettings)
    IJsonArgumentsExtensions.TryGetBoolean(IJsonArguments, string, out bool)
    IJsonArgumentsExtensions.TryGetInt32(IJsonArguments, string, out int)
    IJsonArgumentsExtensions.TryGetString(IJsonArguments, string, out string)
    IJsonArgumentsExtensions.TryGetToken(IJsonArguments)
    IJsonArgumentsExtensions.TryGet<T>(IJsonArguments, string, out T, JsonSerializerSettings)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation