Skip to content

Commit bfbd362

Browse files
committed
LinkedResource -> ResourceLink
1 parent 4e6e4c6 commit bfbd362

File tree

4 files changed

+53
-53
lines changed

4 files changed

+53
-53
lines changed

docs/specification/draft/changelog.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +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](/specification/draft/server/tools#linked-resources)** in
24+
6. Added support for **[resource links](/specification/draft/server/tools#resource-links)** in
2525
tool call results. (PR [#603](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/603))
2626

2727
## Other schema changes

docs/specification/draft/server/tools.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,14 @@ Tool results may contain [**structured**](#structured-content) or **unstructured
230230
}
231231
```
232232

233-
#### Linked Resources
233+
#### Resource Links
234234

235-
[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 by the client:
235+
A tool **MAY** return links to [Resources](/specification/draft/server/resources), to provide additional context
236+
or data. In this case, the tool will return a URI that can be subscribed to or fetched by the client:
237237

238238
```json
239239
{
240-
"type": "linked_resource",
240+
"type": "resource_link",
241241
"uri": "file:///project/src/main.rs",
242242
"name": "main.rs",
243243
"description": "Primary application entry point",
@@ -246,13 +246,13 @@ or data, behind a URI that can be subscribed to or fetched by the client:
246246
```
247247

248248
<Info>
249-
Linked resources returned by tools are not guaranteed to appear in the results
249+
Resource links returned by tools are not guaranteed to appear in the results
250250
of a `resources/list` request.
251251
</Info>
252252

253253
#### Embedded Resources
254254

255-
[Resources](/specification/draft/server/resources) **MAY** be embedded, to provide additional context
255+
A tool **MAY** return embedded [Resource contents](/specification/draft/server/resources), to provide additional context
256256
or data, along with a URI that can be subscribed to or fetched again by the client later:
257257

258258
```json

schema/draft/schema.json

Lines changed: 41 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/draft/schema.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -638,12 +638,12 @@ export interface PromptMessage {
638638
}
639639

640640
/**
641-
* A resource that the server is capable of reading, embedded into a prompt or tool call result.
641+
* A resource that the server is capable of reading, included in a prompt or tool call result.
642642
*
643-
* Note: linked resources are not guaranteed to appear in the results of `resources/list` requests.
643+
* Note: resource links returned by tools are not guaranteed to appear in the results of `resources/list` requests.
644644
*/
645-
export interface LinkedResource extends Resource {
646-
type: "linked_resource";
645+
export interface ResourceLink extends Resource {
646+
type: "resource_link";
647647
}
648648

649649
/**
@@ -966,7 +966,7 @@ export type ContentBlock =
966966
| TextContent
967967
| ImageContent
968968
| AudioContent
969-
| LinkedResource
969+
| ResourceLink
970970
| EmbeddedResource;
971971

972972
/**

0 commit comments

Comments
 (0)