Class SpreadsheetWebMcpTools
Represents a collection of SpreadsheetWebMcpTool components associated with a SpreadsheetWebMcpSettings instance.
Inherited Members
Namespace: Syncfusion.Blazor.Spreadsheet
Assembly: Syncfusion.Blazor.Spreadsheet.dll
Syntax
public class SpreadsheetWebMcpTools : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender
Remarks
Use this component to declare one or more WebMCP tool definitions for an SfSpreadsheet instance. Each child SpreadsheetWebMcpTool can customize a built-in WebMCP tool or define a custom tool that compatible AI agents can invoke.
This component is intended to be declared within a SpreadsheetWebMcpSettings component and serves as a logical container for related tool definitions.
The order in which tools are declared does not affect tool execution behavior.
Examples
<SfSpreadsheet EnableWebMcp="true"> <SpreadsheetWebMcpSettings> <SpreadsheetWebMcpTools> <SpreadsheetWebMcpTool Command="SpreadsheetWebMcpToolCommand.GetSelection" Name="readCurrentSelection" />
</SpreadsheetWebMcpTools>
</SpreadsheetWebMcpSettings>
</SfSpreadsheet>
Constructors
SpreadsheetWebMcpTools()
Declaration
public SpreadsheetWebMcpTools()
Properties
ChildContent
Gets or sets the child content containing the SpreadsheetWebMcpTool entries.
Declaration
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | The Razor content containing the tool definitions. |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |