ReferenceHandlerInterface
Interface for handling execution of MCP elements.
Allows custom implementations of element execution logic.
Tags
Table of Contents
Methods
- handle() : mixed
- Handles execution of an MCP element reference.
Methods
handle()
Handles execution of an MCP element reference.
public
handle(ElementReference $reference, array<string, mixed> $arguments) : mixed
Parameters
- $reference : ElementReference
-
the element reference to execute
- $arguments : array<string, mixed>
-
arguments to pass to the handler
Tags
Return values
mixed —the result of the element execution