Whatever message this page gives is out now! Go check it out!
readResource function retrieves the full content of a specific resource from the MCP server, identified by its URI. This method enables your ColdFusion application to access external files, documents, logs, or other read-only resources exposed by the server, provided you have permission. The returned result includes the resource content and metadata such as MIME type and encoding.readResource(string uri)resourceData = mcpClient.readResource(resourceUri);| Field | Data type | Required | Description |
|---|---|---|---|
uri | String | Yes | The unique URI of the resource to retrieve, e.g. "file:///logs/app.log" or "healthcare://patientdata/P001/ct-scan". |