Skip to content

Commit 5867635

Browse files
committed
add docs
1 parent e8568dd commit 5867635

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

docs/specification/draft/changelog.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ the previous revision, [2025-03-26](/specification/2025-03-26).
2121
5. Added support for **[elicitation](client/elicitation)**, enabling servers to request additional
2222
information from users during interactions.
2323
(PR [#382](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/382))
24+
6. Added support for **[linked resources](http://localhost:3001/specification/draft/server/tools#linked-resources)** in tool call results. (PR [#603](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/603))
2425

2526
## Other schema changes
2627

docs/specification/draft/server/tools.mdx

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,21 +233,32 @@ Tool results may contain [**structured**](#structured-content) or **unstructured
233233
#### Linked Resources
234234

235235
[Resources](/specification/draft/server/resources) **MAY** be linked, to provide additional context
236-
or data, behind a URI that can be subscribed to or fetched again by the client later:
236+
or data, behind a URI that can be subscribed to or fetched by the client:
237237

238+
```json
239+
{
240+
"type": "linked_resource",
241+
"uri": "file:///project/src/main.rs",
242+
"name": "main.rs",
243+
"description": "Primary application entry point",
244+
"mimeType": "text/x-rust"
245+
}
246+
```
247+
248+
<Info>Linked resources returned by tools are not guaranteed to appear in the results of a `resources/list` request.</Info>
238249

239250
#### Embedded Resources
240251

241252
[Resources](/specification/draft/server/resources) **MAY** be embedded, to provide additional context
242-
or data, behind a URI that can be subscribed to or fetched again by the client later:
253+
or data, along with a URI that can be subscribed to or fetched again by the client later:
243254

244255
```json
245256
{
246257
"type": "resource",
247258
"resource": {
248-
"uri": "resource://example",
249-
"mimeType": "text/plain",
250-
"text": "Resource content"
259+
"uri": "file:///project/src/main.rs",
260+
"mimeType": "text/x-rust",
261+
"text": "fn main() {\n println!(\"Hello world!\");\n}"
251262
}
252263
}
253264
```

schema/draft/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ export interface PromptMessage {
646646
*
647647
*/
648648
export interface LinkedResource extends Resource {
649-
type: "linkedresource";
649+
type: "linked_resource";
650650
}
651651

652652
/**

0 commit comments

Comments
 (0)