Skip to main content

resources/read

Read a resource by URI.

Parameters

uri
string
required
URI of the resource to read. Use the format ui://widget/{widget-name}.html for widget resources. Available URIs can be retrieved using resources/list.

Request

{
  "jsonrpc": "2.0",
  "id": 5,
  "method": "resources/read",
  "params": {
    "uri": "ui://widget/shop-widget.html"
  }
}

Response

Returns the resource content (HTML for widgets).