Plugin Authoring Guide
Every v2d plugin is a pure declarative JSON file (schemaVersion: 2). You never need to write Rust, Swift, or Mini Program code to support a new desktop app.
Super-Simple Icon Options
Pick whichever is fastest for you:
- Emoji (Fastest!): Just set
"icon": "🎬"or"icon": "🎵"with a soft"iconBg": "#eef2ff"— works everywhere with zero design tools. - Upload PNG / SVG: In our Visual Plugin Studio, drop any image or SVG and it auto-embeds into a single
.v2dpluginfile. - Folder
icon.svg: When submitting to the repositoryplugins/<id>/, you can place anicon.svgalongsideplugin.json.
Minimal plugin.json Example
{
"schemaVersion": 2,
"id": "obs-studio",
"name": "OBS Studio",
"version": "1.0.0",
"author": "your-github-id",
"category": "media",
"tags": ["Streaming", "Recording"],
"description": "Control OBS recording, scene switching, and mute from your phone",
"icon": "🎬",
"iconBg": "#eef2ff",
"detect": {
"windowPatterns": ["obs"],
"exePaths": ["$PROGRAMFILES/obs-studio/bin/64bit/obs64.exe"]
},
"actions": [
{
"id": "focus",
"label": "Focus OBS",
"icon": "window",
"kind": "primary",
"when": "always",
"exec": { "type": "focus" }
},
{
"id": "record",
"label": "Start / Stop Rec",
"hint": "Ctrl + Shift + R",
"icon": "mic",
"kind": "secondary",
"when": "always",
"exec": { "type": "hotkey", "chord": "Ctrl + Shift + R" }
}
]
}
Universal Action Primitives (exec)
exec.type | Behavior | Parameters |
|---|---|---|
focus | Focuses the app window or launches appPath | None |
hotkey | Focuses the window and sends any key chord | chord: e.g. "Ctrl + Enter", "F5" |
send_text | Focuses composer, pastes text, and presses Enter | text: preset message, or omit with "ui": "compose" to open the mobile keyboard sheet |
uia | Native UI Automation semantic action | target: "approve" / "stop" / "new_chat" / "voice" / "dictate" / "composer" |
reset | Clears pending approval/error alerts and re-probes | None |
Prefer not to hand-edit JSON? Open the Visual Plugin Studio to pick an Emoji icon, add buttons, preview the mobile card live, and download a ready-to-import
.v2dpluginfile in 60 seconds!