simulate_call
Simulate incoming calls on Android emulators to test call handling functionality during development and UI testing workflows.
Instructions
Simulate incoming call (emulator only)
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": {
"phone_number": "<phone_number>"
},
"name": "simulate_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone_number | Yes | ||
| device_serial | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/adb_mcp_server/server.py:1129-1135 (handler)The core handler function for the 'simulate_call' MCP tool. Decorated with @mcp.tool() which handles registration and schema inference from type hints and docstring. Executes ADB command to simulate an incoming phone call on an Android emulator.
@mcp.tool() def simulate_call( phone_number: str, device_serial: str | None = None ) -> str: """Simulate incoming call (emulator only)""" return run_adb(["emu", "gsm", "call", phone_number], device_serial)