75 lines
2.3 KiB
XML
75 lines
2.3 KiB
XML
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"height": "100%",
|
|
"css": "ios-scroll-area"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Toolbar",
|
|
"options": {
|
|
"css": "ios-navbar",
|
|
"items": [
|
|
{
|
|
"text": "Tools",
|
|
"icon": "tools",
|
|
"css": "ios-navbar-title",
|
|
"disabled": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "HBox",
|
|
"options": {
|
|
"css": "ios-card",
|
|
"width": "100%",
|
|
"wrap": true,
|
|
"gap": "12px"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Form",
|
|
"id": "tool_execute_form",
|
|
"options": {
|
|
"css": "ios-group",
|
|
"title": "",
|
|
"fields": [
|
|
{
|
|
"name": "tool_name",
|
|
"uitype": "str",
|
|
"label": "Tool Name",
|
|
"placeholder": "Enter tool name...",
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "parameters",
|
|
"uitype": "text",
|
|
"label": "Parameters (JSON)",
|
|
"placeholder": "{}",
|
|
"required": false
|
|
}
|
|
]
|
|
},
|
|
"binds": [
|
|
{
|
|
"wid": "self",
|
|
"event": "submited",
|
|
"actiontype": "registerfunction",
|
|
"rfname": "hermes_execute_tool",
|
|
"params": "${form_data}$"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"widgettype": "Message",
|
|
"options": {
|
|
"id": "tool_result_message"
|
|
}
|
|
}
|
|
]
|
|
}
|