CallToolResult

mcp.schema.McpSchema.CallToolResult
See theCallToolResult companion object
final case class CallToolResult(content: List[Content], isError: Boolean)

The server's response to a tools/call request from the client.

Value parameters

content

A list of content items representing the tool's output. Each item can be text, an image, or an embedded resource.

isError

If true, indicates that the tool execution failed and the content contains error information. If false or absent, indicates successful execution.

Attributes

Companion
object
Source
McpSchema.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product