get_logcat_output
Retrieve recent 100 logcat lines for a specified Android app package from a connected device, with optional filtering by DEBUG, WARNING, or ERROR log level.
Instructions
从已连接的 Android 设备获取最近 100 行日志。
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": {
"app_package": "<app_package>"
},
"name": "get_logcat_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log_level | No | 日志过滤级别:DEBUG、WARNING 或 ERROR。 | DEBUG |
| app_package | Yes | 要获取日志的应用包名,例如 com.example.app。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |