alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class PdfViewerWebMcpTool

    A single per-instance WebMCP tool entry. Used inside PdfViewerWebMcpTools to disable a built-in, override its metadata, or register a fully custom tool.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    SfBaseComponent
    PdfViewerWebMcpTool
    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.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()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(bool)
    SfBaseComponent.LicenseContext
    SfBaseComponent.OnAfterRenderAsync(bool)
    SfBaseComponent.OnObservableChange(string, object, bool, NotifyCollectionChangedEventArgs)
    SfBaseComponent.ValidateLicenseByUICategory()
    Namespace: Syncfusion.Blazor.SfPdfViewer
    Assembly: Syncfusion.Blazor.SfPdfViewer.dll
    Syntax
    public class PdfViewerWebMcpTool : SfBaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    Per-tool handler replacement is NOT exposed on this component. Both built-in overrides and custom tool implementations are routed through the component-level OnWebMcpExecute event on PdfViewerEvents. The host inspects eventArgs.Command / eventArgs.Name / eventArgs.Arguments, and either assigns a serialized eventArgs.Result (to replace the built-in handler or implement a custom tool) or leaves eventArgs.Result = null to fall through to the built-in handler.

    Constructors

    PdfViewerWebMcpTool()

    Declaration
    public PdfViewerWebMcpTool()

    Properties

    Command

    The built-in tool to customize, or Custom to register a fully new tool.

    Declaration
    [Parameter]
    public PdfViewerWebMcpToolCommand Command { get; set; }
    Property Value
    Type
    PdfViewerWebMcpToolCommand

    Description

    Optional description override / custom description.

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

    Enabled

    Whether this entry is enabled. Default true.

    Declaration
    [Parameter]
    public bool Enabled { get; set; }
    Property Value
    Type
    bool

    InputSchema

    Optional input schema (Custom only; ignored for built-ins).

    Declaration
    [Parameter]
    public string? InputSchema { get; set; }
    Property Value
    Type
    string

    Name

    Optional name override (built-in) or required name (Custom).

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

    Methods

    BuildRenderTree(RenderTreeBuilder)

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

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Overrides
    SfBaseComponent.OnInitializedAsync()

    OnParametersSet()

    Declaration
    protected override void OnParametersSet()
    Overrides
    ComponentBase.OnParametersSet()

    Implements

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