alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class SpreadsheetWebMcpTools

    Represents a collection of SpreadsheetWebMcpTool components associated with a SpreadsheetWebMcpSettings instance.

    Inheritance
    object
    ComponentBase
    SpreadsheetWebMcpTools
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    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()
    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
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    Implements

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