57 lines
2.4 KiB
JSON
57 lines
2.4 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": "MANDATORY: You MUST call this tool whenever you need the user to make a choice or provide input. Do NOT present options as plain text in your response — always use this tool to render interactive option buttons. This step is required and cannot be skipped or replaced by listing options in text. Use this tool when: (1) the user asks to choose between multiple alternatives, (2) you need to clarify ambiguous requirements before proceeding, (3) you need confirmation before taking an action, (4) there are multiple valid approaches and the user must decide. The question will be displayed at the end of your response with clickable option buttons. If options is empty, a free text input will be shown instead.",
|
|
"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."
|
|
},
|
|
"multi_select": {
|
|
"type": "boolean",
|
|
"description": "If true, the user can select multiple options. If false (default), only one option can be selected.",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": ["question"]
|
|
}
|
|
}
|
|
]
|