You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,18 +42,16 @@ previewsmcp run MyView.swift --platform ios-simulator
42
42
# Capture a screenshot
43
43
previewsmcp snapshot MyView.swift -o preview.png
44
44
45
-
#Open a playground — creates a temp file with a starter view and live-reloads on edit
45
+
#Scaffold a new playground file and start a live preview
46
46
previewsmcp playground
47
+
previewsmcp playground MyView.swift # creates MyView.swift with starter code
47
48
previewsmcp playground --platform ios-simulator
48
49
49
-
# Or use an existing file
50
-
previewsmcp playground MyView.swift
51
-
52
50
# Pipe to your editor
53
51
vim $(previewsmcp playground)
54
52
```
55
53
56
-
The `playground` command opens a live preview with hot-reload — no project setup needed. Pass an existing file or omit to create a temp one.
54
+
The `playground` command scaffolds a new SwiftUI file with a starter view and opens a live preview with hot-reload. Pass a path to create the file there, or omit for a temp file. Use `run` to preview existing files.
"Create a temporary SwiftUI file and start a live preview. Returns session ID and file path for editing. No project setup needed.",
223
+
"Create a temporary SwiftUI file and start a live preview for quick experimentation. Returns session ID and file path. For previewing existing files, use preview_start instead.",
0 commit comments