get_pid
Retrieve the process ID (PID) for a given Android package name to identify and manage the app process on a connected device.
Instructions
Returns the process ID (PID) for the specified package name on the connected Android device. Requires the package_name parameter, which is the name of the package to query.
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": {
"package_name": "<package_name>"
},
"name": "get_pid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_name | Yes |