alexa
Syncfusion
menu Syncfusion

Blazor

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

    Show / Hide Table of Contents

    Class PivotViewWebMcpSettings

    Represents the WebMCP configuration for an SfPivotView<TValue> instance.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    SfBaseComponent
    SfDataBoundComponent
    PivotViewWebMcpSettings
    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.SetDataManager<T>(object)
    Namespace: Syncfusion.Blazor.PivotView
    Assembly: Syncfusion.Blazor.PivotView.dll
    Syntax
    public class PivotViewWebMcpSettings : SfDataBoundComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    Use this component to customize the WebMCP tools exposed by a pivot table to compatible AI agents. Built-in tools can be disabled, customized, or replaced, and additional custom tools can be registered through PivotViewWebMcpTool child components.

    Custom tool execution is handled through the OnWebMcpExecute event.

    This component is effective only when EnableWebMcp is true and the hosting environment supports the browser's document.modelContext API.

    Examples

    <SfPivotView TValue="ProductDetails" EnableWebMcp="true"> <PivotViewWebMcpSettings Name="SalesPivot"> <PivotViewWebMcpTools> <PivotViewWebMcpTool Command="PivotViewWebMcpToolCommand.ApplyFiltering" Name="filterProducts" /> </PivotViewWebMcpTools> </PivotViewWebMcpSettings> </SfPivotView>

    Constructors

    PivotViewWebMcpSettings()

    Declaration
    public PivotViewWebMcpSettings()

    Properties

    Name

    Gets or sets the prefix used when generating browser-side WebMCP tool names for this pivot table instance.

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

    A string that defines the prefix applied to all tool names registered by this pivot table. When null or empty, the pivot table falls back to its configured ID and then to an internally generated identifier. The default value is null.

    Remarks

    When specified, this value takes precedence over the pivot table's ID when generating browser-side tool names during WebMCP registration.

    Tool names must be unique within the browser-side WebMCP tool registry. When multiple WebMCP-enabled pivot tables are rendered on the same page, configure a unique Name value for each pivot table to avoid tool registration conflicts.

    The prefix and the tool name are joined with an underscore and the dispatcher strips the prefix at the first underscore, so avoid underscores within the prefix.

    Methods

    BuildRenderTree(RenderTreeBuilder)

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

    OnInitializedAsync()

    Initializes the settings component, hooks it into the parent pivot table, and signals that the tool registry needs to be re-resolved on the next registration via BaseParent.HasWebMcpSettingsChanges.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type
    Task
    Overrides
    SfDataBoundComponent.OnInitializedAsync()

    OnParametersSetAsync()

    Detects a change of the settings prefix and flips BaseParent.HasWebMcpSettingsChanges so the next registration call re-resolves the effective tool catalog. The child tool entries track their own parameter changes, so an unchanged prefix must not trigger another registration.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    Task
    Overrides
    SfDataBoundComponent.OnParametersSetAsync()

    Implements

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