Skip to content

Commit 328a50e

Browse files
committed
Enforce parity between tool results and sampling messages
1 parent 6e92d63 commit 328a50e

File tree

4 files changed

+119
-53
lines changed

4 files changed

+119
-53
lines changed

docs/specification/draft/client/sampling.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,22 @@ Sampling messages can contain:
167167
}
168168
```
169169

170+
#### Embedded Resources
171+
172+
[Resources](/specification/draft/server/resources) **MAY** be embedded, to provide additional context
173+
or data, behind a URI that can be subscribed to or fetched again by the client later:
174+
175+
```json
176+
{
177+
"type": "resource",
178+
"resource": {
179+
"uri": "resource://example",
180+
"mimeType": "text/plain",
181+
"text": "Resource content"
182+
}
183+
}
184+
```
185+
170186
### Model Preferences
171187

172188
Model selection in MCP requires careful abstraction since servers and clients may use

0 commit comments

Comments
 (0)