Class PivotViewWebMcpTools
Represents a collection of PivotViewWebMcpTool components associated with a PivotViewWebMcpSettings instance.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.PivotView
Assembly: Syncfusion.Blazor.PivotView.dll
Syntax
public class PivotViewWebMcpTools : SfDataBoundComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Remarks
Use this component to declare one or more WebMCP tool definitions for an SfPivotView<TValue> instance. Each child PivotViewWebMcpTool can customize a built-in WebMCP tool or define a custom tool that can be invoked by compatible AI agents.
This component is intended to be declared within a PivotViewWebMcpSettings 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
<SfPivotView TValue="ProductDetails" EnableWebMcp="true"> <PivotViewWebMcpSettings Name="SalesPivot"> <PivotViewWebMcpTools> <PivotViewWebMcpTool Command="PivotViewWebMcpToolCommand.ApplyFiltering" Name="filterProducts" />
<PivotViewWebMcpTool
Command="PivotViewWebMcpToolCommand.Custom"
Name="getTopCountries"
Description="Returns the top countries."
InputSchema="@(new { type = "object", properties = new { } })" />
</PivotViewWebMcpTools>
</PivotViewWebMcpSettings>
<PivotViewEvents TValue="ProductDetails" OnWebMcpExecute="HandleToolExecute" />
</SfPivotView>
Constructors
PivotViewWebMcpTools()
Declaration
public PivotViewWebMcpTools()
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
OnInitializedAsync()
Initializes the wrapper, forwards the child Syncfusion.Blazor.PivotView.PivotViewWebMcpTools.Tools list to the parent PivotViewWebMcpSettings and signals the pivot table to re-resolve its effective tool list on the next registration.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
|---|
| Task |