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
210
+
{
211
+
type: "resource_link"asconst,
212
+
uri: "file:///project/README.md",
213
+
name: "README.md",
214
+
mimeType: "text/markdown"
215
+
},
216
+
{
217
+
type: "resource_link"asconst,
218
+
uri: "file:///project/src/index.ts",
219
+
name: "index.ts",
220
+
mimeType: "text/typescript"
221
+
}
222
+
]
223
+
})
224
+
);
197
225
```
198
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
+
199
231
### Prompts
200
232
201
233
Prompts are reusable templates that help LLMs interact with your server effectively:
0 commit comments