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
// ResourceLinks let tools return references without file content
208
+
{
209
+
type: "resource_link",
210
+
uri: "file:///project/README.md",
211
+
name: "README.md",
212
+
mimeType: "text/markdown",
213
+
description: 'A README file'
214
+
},
215
+
{
216
+
type: "resource_link",
217
+
uri: "file:///project/src/index.ts",
218
+
name: "index.ts",
219
+
mimeType: "text/typescript",
220
+
description: 'An index file'
221
+
}
222
+
]
223
+
})
224
+
);
195
225
```
196
226
227
+
#### ResourceLinks
228
+
229
+
Tools can return `ResourceLink` objects to reference resources without embedding their full content. This is essential for performance when dealing with large files or many resources - clients can then selectively read only the resources they need using the provided URIs.
230
+
197
231
### Prompts
198
232
199
233
Prompts are reusable templates that help LLMs interact with your server effectively:
0 commit comments