When you build an app with a coding agent, it already runs the iOS Simulator. With one more step it can show you the result the way your users will see it: on a real device, at an angle, as a transparent PNG you can drop into a pull request, a changelog or your release notes.
This guide shows how a coding agent such as Claude Code, Cursor or Gemini CLI can capture the Simulator and make the mockup with 3Dangled's WebMCP tools, and gives you a prompt for it.
How it works
- The agent cleans up the Simulator's status bar, so the time reads 9:41 and the battery is full.
- It captures the screen with
xcrun simctl, which comes with Xcode. - It opens 3Dangled, picks the device that matches the Simulator, and uploads the screenshot.
- It downloads the mockup and saves it in your project.
The screenshot stays on your computer the whole time. And because a Simulator screenshot has the device's exact resolution, it fits that device's screen exactly: no cropping, no letterboxing.
The commands it uses
These are the two Simulator commands the agent runs; you can run them yourself too.
xcrun simctl status_bar booted override --time 9:41 --batteryState charged --batteryLevel 100 --cellularBars 4 --wifiBars 3
xcrun simctl io booted screenshot ./screenshots/home.pngbooted means the Simulator that's running. xcrun simctl status_bar booted clear puts the real status bar back afterwards.
The prompt
Paste this into your agent while your app is running in the Simulator. Change the angle, finish and folder if you like:
Make a device mockup of the screen my app shows in the iOS Simulator right now, with 3dangled.com's WebMCP tools.
Angle: Turn left
Finish: the device's first finish, unless I say otherwise
Scale: 2
Save to: ./docs/mockups
1. Check that you have Chrome DevTools MCP with its WebMCP tools (list_webmcp_tools). If you don't, stop and tell me to follow https://3dangled.com/blog/how-to-use-webmcp/ first.
2. Find the booted Simulator and its device type with: xcrun simctl list devices booted. If none is running, tell me and stop; if more than one is, ask me which.
3. Give it a clean status bar: xcrun simctl status_bar booted override --time 9:41 --batteryState charged --batteryLevel 100 --cellularBars 4 --wifiBars 3
4. Capture the screen: xcrun simctl io booted screenshot ./docs/mockups/screen.png
5. Open https://3dangled.com in a new page, wait for its devices to load, and call list_webmcp_tools.
6. Call list_devices and pick the device whose name matches the Simulator's device type. If 3Dangled doesn't have it, tell me the closest ones and wait.
7. Call set_mockup with that device, the angle, the finish and the scale. Use list_angles if you need the exact angle name.
8. Upload ./docs/mockups/screen.png with upload_file on the editor's "Drop file or browse" button, then call get_mockup to check it's on the device.
9. Call download_mockup, then move the PNG from the browser's downloads folder (usually ~/Downloads) to ./docs/mockups/, with a name that says which screen it is. If you can't find it, tell me.
10. Put the status bar back: xcrun simctl status_bar booted clear
11. Show me the mockup's path and size.Ways to use it
- In a pull request. After building a UI change, ask the agent to run the prompt and add the mockup to the PR description, so reviewers see the screen without running the branch.
- For release notes and changelogs. Capture each new screen once the feature is done, and you have the images for the What's new post.
- For several screens. Ask the agent to navigate between screens (or tell it which ones you'll open) and make a mockup of each, keeping the same device and angle.
- On iPad. Run your app in an iPad simulator, such as an iPad Pro 13-inch (M5), and the same prompt makes an iPad mockup.
Tips
- Match the Simulator to a device 3Dangled has. 3Dangled has iPhones from the iPhone 5 to the iPhone 18 Pro Max, iPads, MacBooks and Apple Watches;
list_devicesgives the full list. - Pick an angle once. Ask the agent for the same angle and finish every time, and your PRs and release notes look consistent.
- Light and dark.
xcrun simctl ui booted appearance darkswitches the Simulator to dark mode, for a second mockup of the same screen.
What it can't do (yet)
The result is a single transparent device mockup. Backgrounds, captions and full App Store layouts are for your design tool afterwards. Agents can use the device's named finishes, not custom tint colours, for now.







