用 HTML 创建资源
cloudclass_create_html_resourcePublish a single HTML document directly from AI-generated content without creating a file first. Use it to share interactive pages with titles, tags, summaries, and visibility settings.
Instructions
Publish a single HTML document without writing a file first. Useful for AI-generated interactive pages. The HTML limit is 4 MB.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"html": "<html>"
},
"name": "cloudclass_create_html_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | 完整 HTML 文档 | |
| tags | No | 标签数组,例如 ["农业","地理"] | |
| cover | No | 封面配色 | |
| title | Yes | 资源标题,2–60 字 | |
| summary | No | 资源简介,200 字以内 | |
| category | No | 学科分类 | |
| className | No | visibility=class 时必填 | |
| visibility | No | public 公开;class 仅指定班级 |