get_current_context
Identify the active UI context—native app (UIA) or webview (DOM)—to select the appropriate interaction method.
Instructions
Get the current active context. Returns "NATIVE_APP" (UIA element tree, find_element works here) or "WEBVIEW_" (web DOM, standard web selectors apply). Call this if unsure which context is active before interacting.
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": "get_current_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||