CallToolResult.error

Build an error result (isError = true) carrying a single text content block describing the failure.

struct CallToolResult
static @safe
error
(
string s
)