alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class DiagramWebMcpTool

    Represents a single declarative entry in the diagram WebMCP tool collection.

    Inheritance
    object
    ComponentBase
    DiagramWebMcpTool
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    Inherited Members
    ComponentBase.SetParametersAsync(ParameterView)
    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 DiagramWebMcpTool : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender
    Remarks

    Each entry selects a built-in command through Command, or supplies a custom tool when Command is Custom.

    A built-in entry may override the exposed Name and Description without changing its built-in dispatch.

    A Custom entry requires non-empty Name, Description, and InputSchema. Custom execution is handled by the component-level OnWebMcpExecute callback.

    Constructors

    DiagramWebMcpTool()

    Declaration
    public DiagramWebMcpTool()

    Properties

    Command

    Gets or sets the built-in command this entry selects. Use Custom to declare a custom tool.

    Declaration
    [Parameter]
    public DiagramWebMcpToolCommand Command { get; set; }
    Property Value
    Type
    DiagramWebMcpToolCommand

    Description

    Gets or sets an override for the registered tool description. When Command is a built-in value and Description is null or empty, the canonical description is used. Required when Command is Custom.

    Declaration
    [Parameter]
    public string? Description { get; set; }
    Property Value
    Type
    string

    Enabled

    Gets or sets a value indicating whether this entry is registered. The default is true. Disabled entries are omitted from registration while still validating their declarations.

    Declaration
    [Parameter]
    public bool Enabled { get; set; }
    Property Value
    Type
    bool

    InputSchema

    Gets or sets the JSON string schema describing the tool's input payload. Required when Command is Custom. For built-in entries the schema is inherited from the canonical built-in definition when not supplied.

    Declaration
    [Parameter]
    public string? InputSchema { get; set; }
    Property Value
    Type
    string

    Name

    Gets or sets an override for the registered tool name. When Command is a built-in value and Name is null or empty, the canonical name is used. Required when Command is Custom.

    Declaration
    [Parameter]
    public string? Name { get; set; }
    Property Value
    Type
    string

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    OnInitialized()

    Declaration
    protected override void OnInitialized()
    Overrides
    ComponentBase.OnInitialized()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved