Start log capture
start_log_captureBegins capturing Android logcat to a file in the background, filtering by app or tag, and returns a session ID for later stopping.
Instructions
Start capturing logcat to a file in the background. Filter by app (via its pid) and/or tag. Returns a sessionId for stop_log_capture. The app must be running to filter by appId.
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": "start_log_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Only capture this log tag (logcat '<tag>:V *:S') | |
| appId | No | Only capture logs of this app (defaults to session appId; must be running) | |
| clear | No | Clear the log buffer first (default true) | |
| serial | No | Device serial (defaults to session or the only device) |