as_adb_logcat
Retrieve a static dump of recent Android device logs with configurable line count, filter spec, optional buffer clear, and grep. Returns log text and line count.
Instructions
Dump a snapshot of the most recent device logs (non-streaming).
Args: params (LogcatInput): serial, lines, filter_spec, clear_first, grep.
Returns: str: JSON with 'log' (the captured text) and 'line_count'.
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": {
"params": "<params>"
},
"name": "as_adb_logcat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |