Documentation / Advanced
Extend Studio with plugins, file handlers, drawers, and icon packs
Build CLI, Stdio, sandboxed WASI (.wasm), Declarative UI tabs, filetype handlers, drawers, and SVG icon packs.
Plugin tiers and discovery
Studio loads .yaml/.json manifests from ~/.rippflow/agents/ (or $RIPPFLOW_AGENT_PLUGINS_DIR) and discovers local manifests in ~/.rippflow/plugins/. Tiers: CLI (cli), Stdio (rippflow-agent/v1 JSON/NDJSON), Wasm (wasm32-wasip1 via cached Wasmtime), and Declarative UI (type: ui / contributes).
rippflow plugin list
rippflow plugin add path/to/plugin.yaml
rippflow plugin remove my-pluginDeclarative UI tabs (static, wasm://, plugin://)
Set contributes.tabs[].view to a .json file or dynamic wasm://<id>/<tab> / plugin://<id>/<tab>. Dynamic views receive action: "view" on stdin and emit DeclarativeUiSpec JSON (layout with MetricCard, charts, DagFlow, Table, Markdown, Image, Toolbar, Pager, Canvas, MediaPlayer).
{
"version": "rippflow/ui-v1",
"id": "local-ports.overview",
"title": "Ports & Containers",
"layout": {
"type": "Container",
"gap": 16,
"children": [
{ "type": "MetricCard", "label": "Listening Ports", "value": "12", "status": "success" }
]
}
}Filetype handlers (contributes.fileHandlers)
Declare contributes.fileHandlers with extensions (e.g. pdf, docx, pptx, mp4), mimeTypes, and priority (default or option). Studio invokes open_file and interactive file_event (with persisted state) over stdio, wasm, or cli, rendering Tier 1 (Markdown, Image, Toolbar, Pager, Table) and Tier 2 (Canvas, MediaPlayer) GPUI surfaces.
id: doc-viewer
name: Document Viewer (PDF / DOCX / PPTX)
type: ui
binary: python3
transport: stdio
invoke:
args:
- doc_viewer.py
contributes:
fileHandlers:
- id: doc-viewer.documents
displayName: Document Viewer (PDF / DOCX / PPTX)
extensions: ["pdf", "docx", "pptx"]
priority: default
mode: readonlySidebar drawers and actions
Declare contributes.drawers with id, title, icon, optional view, and dataSource (command or watched file). Output JSON accepts sections[].items[] with action.type (open_tab, open_url, open_file, run_command).
contributes:
drawers:
- id: local-ports.drawer
title: Local Ports & Containers
icon: network
type: list
view: plugin://local-ports/overview
dataSource:
command: "python3 local_ports.py --drawer"Icon packs and file-type overrides
Declare contributes.iconPacks with { id, name, path: "icons/" } containing <key>.svg files and optional icons.json aliases for Studio chrome and file-<ext> icons. rippflow-glyph is protected.
id: lucide-icons
name: Lucide Studio Icons
type: ui
contributes:
iconPacks:
- id: lucide-icons
name: Lucide Icons (ISC)
path: icons/Examples and MCP tools
See rippflow-examples/plugins (doc-viewer, ollama, wasm-trace-lens, local-ports, lucide-icons). MCP tools: rippflow_list_plugins, rippflow_install_plugin, rippflow_remove_plugin, rippflow_mount_view.
bash plugins/install.shVerified sources
Checked 2026-11-19.
