alexa
Syncfusion
menu Syncfusion

Blazor

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

    Show / Hide Table of Contents

    Class PivotViewWebMcpTools

    Represents a collection of PivotViewWebMcpTool components associated with a PivotViewWebMcpSettings instance.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    SfBaseComponent
    SfDataBoundComponent
    PivotViewWebMcpTools
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(bool)
    SfBaseComponent.LicenseContext
    SfBaseComponent.OnObservableChange(string, object, bool, NotifyCollectionChangedEventArgs)
    SfBaseComponent.ValidateLicenseByUICategory()
    SfDataBoundComponent.DataManager
    SfDataBoundComponent.MainParent
    SfDataBoundComponent.OnAfterRenderAsync(bool)
    SfDataBoundComponent.OnParametersSetAsync()
    SfDataBoundComponent.SetDataManager<T>(object)
    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
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    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
    Overrides
    SfDataBoundComponent.OnInitializedAsync()

    Implements

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