createErrorContent

fun createErrorContent(message: String, meta: JsonObject? = null): JsonObject(source)

Wraps an error tool result into the MCP content envelope.