Method CallAsync
CallAsync(string, McpRequestContext, CancellationToken)
Executes the tool.
Task<McpToolResult> CallAsync(string arguments, McpRequestContext context, CancellationToken cancellationToken = default)
Parameters
argumentsstringA JSON object conforming to InputSchema.
contextMcpRequestContextSession, caller identity, and the progress channel.
cancellationTokenCancellationTokenA token to observe while executing.
Returns
- Task<McpToolResult>
The content blocks to hand back to the caller. Return FromError(string) for failures the caller can correct; throw only for faults that are not the caller's to fix.