# `GenMCP.MCP.V2607.PromptMessage`
[🔗](https://github.com/lud/gen_mcp/blob/main/lib/gen_mcp/mcp/v2607/entities.ex#L3139)

Struct and module-based JSON schema generated from
[modelcontextprotocol.io JSON schema](https://github.com/modelcontextprotocol/modelcontextprotocol/tree/main/schema/2026-07-28/schema.json).

Describes a message returned as part of a prompt.

This is similar to {@link SamplingMessage}, but also supports the
embedding of resources from the MCP server.

# `t`

```elixir
@type t() :: %GenMCP.MCP.V2607.PromptMessage{content: term(), role: term()}
```

# `json_schema`

Returns the JSON schema for this entity.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
