ExMCP.Server.DSL.Result (ex_mcp v1.0.0-rc.1)

View Source

Response helpers for the modern server DSL.

Summary

Functions

Builds an error tool result.

Builds a tool result with both text and structured content.

Builds a text tool result.

Functions

error(reason)

@spec error(any()) :: map()

Builds an error tool result.

structured(text, data)

@spec structured(String.t(), map()) :: map()

Builds a tool result with both text and structured content.

text(text)

@spec text(String.t()) :: map()

Builds a text tool result.