Resource read callback. Prefer the SDK's raw ReadResourceResult; each contents entry addresses itself with the read uri.
contents
uri
Deprecated response helpers that return a CallToolResult are still accepted and converted at registration time.
async (uri) => ({ contents: [{ uri: uri.href, mimeType: "text/plain", text: "hello" }],}) Copy
async (uri) => ({ contents: [{ uri: uri.href, mimeType: "text/plain", text: "hello" }],})
Resource read callback. Prefer the SDK's raw ReadResourceResult; each
contentsentry addresses itself with the readuri.Deprecated response helpers that return a CallToolResult are still accepted and converted at registration time.