52 lines
1.8 KiB
JSON
52 lines
1.8 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"]
|
|
}
|
|
},
|
|
{
|
|
"name": "ask_user",
|
|
"description": "Ask the user a question and present options for them to choose from. Use this tool when you need user input to proceed, such as clarifying requirements, choosing between alternatives, or confirming an action. The question will be displayed at the end of your response with clickable option buttons.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"type": "string",
|
|
"description": "The question to ask the user"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "List of options for the user to choose from. If empty, a free text input will be shown instead."
|
|
}
|
|
},
|
|
"required": ["question"]
|
|
}
|
|
}
|
|
]
|