iph_record
Records an iPhone screen to an MP4 while other calls run, so you can capture test evidence with start, stop, and status actions. Prefer USB to prevent packet loss from damaging the video.
Instructions
Record the phone's screen to an MP4 file while other calls run, as evidence of a test. "start" (one recording at a time; taps keep working), "stop" (ends it and returns path, duration_s, frames, lost_packets; with first_loss_s and a packets_lost warning when packets were lost), "status". The phone shows its screen-sharing indicator while recording. Prefer USB: the phone sends one keyframe, so a packet lost over Wi-Fi damages the picture until the end.
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": {
"action": "<action>"
},
"name": "iph_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | start: absolute path of the MP4 to write (default: in iph's state directory). | |
| action | Yes | ||
| display | No | start: the display to record (default: the first that shows the screen). |