72 lines
2.7 KiB
JSON
72 lines
2.7 KiB
JSON
[
|
|
{
|
|
"name": "render_ui",
|
|
"description": "Render an interactive UI widget in the chat. Supports two modes: (1) raw HTML — provide html_content to render custom HTML/CSS/JS, (2) external URL — provide url to embed an external webpage in an iframe. Use html_content OR url, not both.",
|
|
"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. Use this OR url, not both."
|
|
},
|
|
"url": {
|
|
"type": "string",
|
|
"description": "External URL to embed in an iframe. Use this OR html_content, not both."
|
|
},
|
|
"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": "Present questions with selectable options to the user. CRITICAL: Every question MUST have at least 2 options in the options array — generate reasonable suggestions based on context. Do NOT call this tool with empty options arrays. See the ask_user usage guide in system prompt for detailed rules.",
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"questions": {
|
|
"type": "array",
|
|
"description": "Array of questions to ask the user. Each question is an object with its own question text, options, and multi_select setting.",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"type": "string",
|
|
"description": "The question to ask the user"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"minItems": 2,
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "REQUIRED array with at least 2 options. Put choices here, NOT in the question text."
|
|
},
|
|
"multi_select": {
|
|
"type": "boolean",
|
|
"description": "If true, the user can select multiple options for this question. Default: false.",
|
|
"default": false
|
|
}
|
|
},
|
|
"required": ["question", "options"]
|
|
}
|
|
}
|
|
},
|
|
"required": ["questions"]
|
|
}
|
|
}
|
|
]
|