π File detail
tools/ReadMcpResourceTool/prompt.ts
π§© .tsπ 17 linesπΎ 544 bytesπ text
β Back to all filesπ― Use case
This module implements the βReadMcpResourceToolβ tool (Read Mcp Resource) β something the model can call at runtime alongside other agent tools. On the API surface it exposes DESCRIPTION and PROMPT β mainly types, interfaces, or factory objects.
Generated from folder role, exports, dependency roots, and inline comments β not hand-reviewed for every path.
π§ Inline summary
export const DESCRIPTION = ` Reads a specific resource from an MCP server. - server: The name of the MCP server to read from - uri: The URI of the resource to read
π€ Exports (heuristic)
DESCRIPTIONPROMPT
π₯οΈ Source preview
export const DESCRIPTION = `
Reads a specific resource from an MCP server.
- server: The name of the MCP server to read from
- uri: The URI of the resource to read
Usage examples:
- Read a resource from a server: \`readMcpResource({ server: "myserver", uri: "my-resource-uri" })\`
`
export const PROMPT = `
Reads a specific resource from an MCP server, identified by server name and resource URI.
Parameters:
- server (required): The name of the MCP server from which to read the resource
- uri (required): The URI of the resource to read
`