Class DiagramWebMcpTool
Represents a single declarative entry in the diagram WebMCP tool collection.
Inherited Members
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
OnInitialized()
Declaration
protected override void OnInitialized()