execute

open suspend override fun execute(args: McpTool.Args): McpTool.Result(source)

Executes the MCP tool with the given arguments.

This method calls the MCP tool through the MCP client and converts the result to a Result object that can be used by the agent framework.

Return

The result of the MCP tool call.

Parameters

args

The arguments for the MCP tool call.