Current App Id
current_app_idRetrieve the package or bundle identifier of the foreground app on a connected device, so you can target or verify the active app during automation.
Instructions
Package / bundle id of the foreground app.
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": "current_app_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |