Domain name for API request: adp.intl.tencentcloudapi.com.
This API is used to read MCP UI resources in HTML for frontend iframe to load the MCP App interface.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ReadMCPResource. |
| Version | Yes | String | Common Params. The value used for this API: 2026-05-20. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| PluginId | Yes | String | Capacity boundary: one request can only read the resources belonging to this plugin |
| ThreadId | Yes | String | thread on the agent-exec side |
| Uri | Yes | String | Resource URI, source: _meta.ui.resourceUri of the tool |
| Parameter Name | Type | Description |
|---|---|---|
| Contents | Array of MCPResourceContents | Resource content returned by MCP resources/read |
| ResourceMeta | String | JSON: The original _meta of Resource. In the MCP App scenario, Host enforces the CSP policy based on ui.csp. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: adp.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ReadMCPResource
<Common request parameters>
{
"PluginId": "418eee0b-4aa7-4aef-939b-3c48d404e846",
"ThreadId": "b18c602d-054d-4f1a-ad9b-f785ba4d69c5",
"Uri": "ui://overtime-list/overtime-list.html"
}
{
"Response": {
"Contents": [
{
"Blob": null,
"Meta": "",
"MimeType": "text/html;profile=mcp-app",
"Text": "<!DOCTYPE ",
"Uri": "ui://overtime-list/overtime-list.html"
}
],
"ResourceMeta": "<>",
"RequestId": "4be49907-1928-419f-9b26-5c4199ea7967"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan