Class DiagramWebMcpExecuteEventArgs
Provides the command, arguments, and execution controls for a WebMCP tool before it is dispatched.
Inherited Members
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 |