You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/specification/draft/client/sampling.mdx
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,18 +167,38 @@ Sampling messages can contain:
167
167
}
168
168
```
169
169
170
+
#### Resource Links
171
+
172
+
A tool **MAY** return links to [Resources](/specification/draft/server/resources), to provide additional context
173
+
or data. In this case, the tool will return a URI that can be subscribed to or fetched by the client:
174
+
175
+
```json
176
+
{
177
+
"type": "resource_link",
178
+
"uri": "file:///project/src/main.rs",
179
+
"name": "main.rs",
180
+
"description": "Primary application entry point",
181
+
"mimeType": "text/x-rust"
182
+
}
183
+
```
184
+
185
+
<Info>
186
+
Resource links returned by tools are not guaranteed to appear in the results
187
+
of a `resources/list` request.
188
+
</Info>
189
+
170
190
#### Embedded Resources
171
191
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:
192
+
[Resources](/specification/draft/server/resources)**MAY** be embedded to provide additional context
193
+
or data using a suitable [URI scheme](./resources#common-uri-schemes). Servers that use embedded resources **SHOULD** implement the `resources` capability:
0 commit comments