alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class DiagramWebMcpExecuteEventArgs

    Provides the command, arguments, and execution controls for a WebMCP tool before it is dispatched.

    Inheritance
    object
    DiagramWebMcpExecuteEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.Diagram.dll
    Syntax
    public sealed class DiagramWebMcpExecuteEventArgs
    Remarks

    Set Cancel to stop execution, or set ShowConfirmationDialog to request browser confirmation before dispatch. Custom tools must set Result; for built-in tools, setting it overrides the built-in result.

    Constructors

    DiagramWebMcpExecuteEventArgs()

    Declaration
    public DiagramWebMcpExecuteEventArgs()

    Properties

    Arguments

    Gets the JSON arguments supplied by the WebMCP caller, keyed by argument name.

    Declaration
    public IReadOnlyDictionary<string, object>? Arguments { get; }
    Property Value
    Type
    IReadOnlyDictionary<string, object>

    Cancel

    Gets or sets a value indicating whether tool execution should be cancelled.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type
    bool

    CancellationResponse

    Gets or sets the response message returned when execution is cancelled or confirmation is denied.

    Declaration
    public string? CancellationResponse { get; set; }
    Property Value
    Type
    string

    Command

    Gets the command that triggered dispatch.

    Declaration
    public DiagramWebMcpToolCommand Command { get; }
    Property Value
    Type
    DiagramWebMcpToolCommand

    Name

    Gets the base tool name (without the registration prefix). For custom entries this is the customer-supplied Name; for built-in entries this is the command enum member name.

    Declaration
    public string Name { get; }
    Property Value
    Type
    string

    Result

    Gets or sets the JSON payload to return to the WebMCP caller. Required for custom tools and optionally overrides the built-in tool result.

    Declaration
    public string? Result { get; set; }
    Property Value
    Type
    string

    ShowConfirmationDialog

    Gets or sets a value indicating whether browser confirmation is required before dispatching the tool.

    Declaration
    public bool ShowConfirmationDialog { get; set; }
    Property Value
    Type
    bool
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved