qwen_agent/skills/developing/mcp-ui/mcp_ui_tools.json
2026-05-15 14:22:10 +08:00

31 lines
1.0 KiB
JSON

[
{
"name": "render_ui",
"description": "Render an interactive HTML UI widget in the chat. Use this tool when the user asks for interactive content, visualizations, forms, or dynamic displays that benefit from rich HTML rendering rather than plain text.",
"inputSchema": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "A descriptive title for the UI widget"
},
"html_content": {
"type": "string",
"description": "Complete HTML content to render. Can include inline CSS and JavaScript within <style> and <script> tags."
},
"width": {
"type": "string",
"description": "CSS width for the iframe. Default: '100%'",
"default": "100%"
},
"height": {
"type": "string",
"description": "CSS height for the iframe. Default: '400px'",
"default": "400px"
}
},
"required": ["title", "html_content"]
}
}
]