stop_screen_record
Stop screen recordings on Android devices during development, testing, or debugging sessions to capture and analyze device activity.
Instructions
Stop any ongoing screen recording
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_serial | No |
Implementation Reference
- src/adb_mcp_server/server.py:212-217 (handler)The stop_screen_record tool is implemented as a FastMCP tool handler. It stops any ongoing screen recording by sending SIGINT to the screenrecord process using ADB shell pkill.@mcp.tool() def stop_screen_record(device_serial: str | None = None) -> str: """Stop any ongoing screen recording""" run_adb(["shell", "pkill", "-l", "SIGINT", "screenrecord"], device_serial) return "Screen recording stopped. Files are saved on device at /sdcard/"
- src/adb_mcp_server/server.py:212-212 (registration)The tool is registered via the @mcp.tool() decorator on the handler function.@mcp.tool()