screenshot
Capture a simulator screen as a PNG by providing the device UDID.
Instructions
Capture a screenshot from a simulator as PNG
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"deviceId": "<deviceId>"
},
"name": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deviceId | Yes | Simulator UDID | |
| outputPath | No | Output file path (auto-generated if not set) |