result

The output from the MCP server call. Can be simple text or rich content.


Sets Builder.result to an arbitrary JSON value.

You should usually call Builder.result with a well-typed Result value instead. This method is primarily for setting the field to an undocumented or not yet supported value.


public final McpServerToolResultStep.Builder result(JsonValue jsonValue)

Alias for calling result with Result.ofJsonValue(jsonValue).


Alias for calling result with Result.ofString(string).