Generate Interactive AUI Widget
aui_generate_uiConverts raw JSON, CSV, SQL rows, or a public URL into an XSS-isolated interactive iframe for data tables, charts, timelines, or schedules, returning an embeddable URL.
Instructions
Transform raw JSON/CSV/SQL rows (data) or a public webpage (url) into an XSS-isolated interactive AUI iframe, returning { success, embed_url, cache_id, cached }. Engines (ui_type): 'dt' (2-line DataTables with facets, child drawers & CSV export), 'cg' (Apache ECharts bar/line/pie/radar/scatter), 'tl' (Omni-Time V3 60fps timeline + synced list), 'dp' (DayPilot 2D resource schedule), or 'auto'. Pass data or url (data takes precedence if both are set). Zero-key calls run free <50ms deterministic synthesis (0 credits); passing a trial-... or svsrva-key-... runs Gemini semantic layout (1 credit on cache miss, 0 on deterministic MD5 cache hit; 120 req/15m per-IP limit). Embed embed_url directly in chat/HTML, or pass cache_id to aui_get_status (inspect/reuse) or aui_share_widget (out-of-band SMS/email).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "aui_generate_ui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public HTTPS webpage URL to scrape and structure when `data` is omitted. | |
| data | No | JSON array, object, or CSV string of records/events to visualize. Takes precedence over `url` when both are supplied. | |
| theme | No | Visual theme for the embedded iframe ('dark' or 'light'). | dark |
| prompt | No | Optional natural-language title, grouping, or layout instruction. | |
| actions | No | Optional row/event postMessage action button specs (e.g. `[{action_name:'openRecord', id_column:'id', label:'Inspect'}]`). | |
| ui_type | No | Target AUI engine: 'auto' (inspects payload shape), 'dt' (DataTable), 'cg' (ECharts), 'tl' (Omni-Time timeline), or 'dp' (DayPilot resource tape). | auto |
| chart_type | No | Chart subtype used only when `ui_type` resolves to `'cg'`. | auto |
| aui_api_key | No | Optional `trial-...` or `svsrva-key-...` credential (falls back to `Authorization: Bearer` header, or free deterministic sandbox if omitted). | |
| gemini_api_key | No | Optional BYOK Google Gemini key (`AIza...`) for one-off AI layout without a provisioned AUI key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message when `success` is false (e.g. invalid key, depleted credits, or unreachable URL). | |
| cached | No | True when served directly from deterministic cache with zero credit deduction. | |
| success | Yes | True when the widget was generated or retrieved from deterministic cache. | |
| cache_id | No | Deterministic widget identifier (`chk_...`) for `aui_get_status` or `aui_share_widget`. | |
| embed_url | No | Public HTTPS iframe URL (`https://svsrva.com/aui/v2/embed.html?id=chk_...`). |