toJson

fun McpTool.toJson(): JsonObject(source)

The tool as MCP Tool JSON (for an MCP App's hostContext.toolInfo).