logcat
Retrieve recent Android log lines filtered by app, tag, priority, time, and JavaScript regex to debug app issues; switch to follow mode for streaming logs while reproducing bugs.
Instructions
Recent Android log lines, filtered by app, tag, priority, time and regex. Android's clock is UTC. For logs that keep coming, such as while you reproduce a bug, use logcat_follow.
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": "logcat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | JavaScript regular expression a line must match. | |
| tags | No | logcat filter specs such as "ActivityManager:I" or "chromium:V"; tags not listed are hidden. | |
| lines | No | Return at most the last N matching lines. | |
| buffers | No | ||
| package | No | Only lines logged by this app's uid. System apps such as Settings share uid 1000 with system_server. | |
| since_s | No | Only lines from the last N seconds. | |
| min_priority | No | Lowest priority shown, for every tag not in tags. |