stop_recording
Stop an active recording session and verify the output file. Check file existence and size before frame extraction; retry if file is missing or empty.
Instructions
Stop one manual recording session and verify the produced file.
Call this after start_recording or start_app_window_recording returned a
session_id and the UI interaction has finished.
Always inspect file_exists and file_size_bytes before extracting frames:
file_exists must be true and file_size_bytes must be greater than zero.
Android sessions may also include pull_returncode from adb file transfer.
If stopping fails or the file is missing/empty, use list_active_sessions and
cleanup_stale_processes before retrying. Permission failures usually require
user action in macOS System Settings or on the Android device.
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": {
"session_id": "<session_id>"
},
"name": "stop_recording"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | session_id returned by start_recording or start_app_window_recording. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||