Stop async focus trace
mobile_focus_trace_stopStop an async mobile focus session to retrieve focus change events and trace samples for flash or launcher debugging on a specified device.
Instructions
Stop an async focus session and return focus change events plus samples (wallClockIso, tMs, optional recordOffsetMs). Prefer changes for flash/launcher hunting. Large traces write samples JSON to an artifact.
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": {
"serial": "<serial>",
"focusSessionId": "<focusSessionId>"
},
"name": "mobile_focus_trace_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | Exact ADB serial from mobile_devices_list; never inferred when multiple devices exist | |
| focusSessionId | Yes | ||
| includeAllSamples | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | Yes | ||
| changes | Yes | ||
| samples | Yes | ||
| truncated | Yes | ||
| displayIds | Yes | ||
| durationMs | Yes | ||
| changeCount | Yes | ||
| sampleCount | Yes | ||
| startedAtIso | Yes | ||
| stoppedAtIso | Yes | ||
| boundRecordId | No | ||
| droppedSamples | Yes | ||
| focusSessionId | Yes | ||
| sampleIntervalMs | Yes | ||
| responseCompacted | No | ||
| samplesArtifactUri | No |