MCPContent

org.llm4s.mcp.MCPContent
See theMCPContent companion object
case class MCPContent(`type`: String, text: Option[String], resource: Option[ResourceReference], annotations: Option[Value])

Enhanced content item within a tool response (PR #371 - Structured Tool Output). Supports text, resource links, and structured annotations.

Value parameters

`type`

Content type: "text", "resource", "image", etc.

annotations

Optional structured metadata

resource

Resource reference (for resource type)

text

The actual content text (for text type)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product