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
Inherited Members
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
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
OnParametersSet()
Declaration
protected override void OnParametersSet()