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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stop_screen_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_serial | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
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()