CallToolResult

@Serializable
class CallToolResult(val content: List<PromptMessageContent>, val isError: Boolean? = false, val _meta: JsonObject = EmptyJsonObject) : CallToolResultBase(source)

The server's response to a tool call.

Constructors

Link copied to clipboard
constructor(content: List<PromptMessageContent>, isError: Boolean? = false, _meta: JsonObject = EmptyJsonObject)

Properties

Link copied to clipboard
open override val _meta: JsonObject

The protocol reserves this result property to allow clients and servers to attach additional metadata to their responses.

Link copied to clipboard
open override val content: List<PromptMessageContent>
Link copied to clipboard
open override val isError: Boolean? = false