harnessed_agent/wwwroot/execute_remote_skill.ui
2026-05-04 10:09:04 +08:00

104 lines
3.5 KiB
XML

{
"widgettype": "VBox",
"options": {
"width": "100%",
"height": "100%",
"css": "ios-scroll-area"
},
"subwidgets": [
{
"widgettype": "Toolbar",
"options": {
"css": "ios-navbar",
"items": [
{
"text": "Execute Skill",
"icon": "play",
"css": "ios-navbar-title",
"disabled": true
}
]
}
},
{
"widgettype": "VBox",
"options": {
"css": "ios-card",
"width": "100%",
"padding": "16px"
},
"subwidgets": [
{
"widgettype": "Form",
"id": "execute_form",
"options": {
"css": "ios-group",
"fields": [
{"name": "skill_id", "label": "Skill ID", "readonly": true, "hidden": true},
{"name": "parameters", "label": "Parameters (JSON)", "type": "textarea", "height": "250px", "default": "{}"}
]
}
},
{
"widgettype": "ButtonBar",
"options": {
"buttons": [
{
"id": "execute_submit",
"text": "Execute",
"icon": "play",
"css": "ios-btn"
},
{
"id": "execute_cancel",
"text": "Cancel",
"icon": "x",
"css": "ios-btn ios-btn-secondary"
}
]
},
"binds": [
{
"wid": "execute_submit",
"event": "click",
"actiontype": "callfunction",
"fname": "hermes_manage_remote_skills",
"params": {
"action": "execute",
"skill_id": "${skill_id}$",
"parameters": "${parameters}$"
},
"target": "execute_result",
"method": "set_text"
},
{
"wid": "execute_cancel",
"event": "click",
"actiontype": "close_dialog"
}
]
},
{
"widgettype": "Label",
"id": "execute_result",
"options": {
"text": "",
"height": "60px",
"overflow": "auto",
"css": "ios-card-subtitle"
}
}
]
}
],
"binds": [
{
"wid": "self",
"event": "loaded",
"actiontype": "load_url_params",
"target": "execute_form",
"method": "load_data"
}
]
}