Topmost Window PID
sailfish_device_topmost_pidQueries Lipstick for the current topmost window process ID, so you can identify the foreground app on a Sailfish OS device.
Instructions
Query Lipstick for the current topmost window process id.
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": "sailfish_device_topmost_pid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Configured device alias or ssh target. When the user says the device is attached over USB, use 'usb' for the default device or 'usb:<name>' when the user supplies a device name. The USB connection trusts that name for device metadata and does not resolve it through DNS. | |
| timeout | No | Command timeout in seconds. |