@nbakka/mcp-appium 2.0.11 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server.js +16 -0
- package/package.json +1 -1
package/lib/server.js
CHANGED
|
@@ -142,6 +142,22 @@ const createMcpServer = () => {
|
|
|
142
142
|
const screenSize = await robot.getScreenSize();
|
|
143
143
|
return `Screen size is ${screenSize.width}x${screenSize.height} pixels`;
|
|
144
144
|
});
|
|
145
|
+
tool(
|
|
146
|
+
"mobile_learn_current_app_context",
|
|
147
|
+
"Capture and store contextual knowledge about the current app screen or deeplink to inform intelligent automation decisions. This should be the first step after launching the app and before performing any tests.",
|
|
148
|
+
{},
|
|
149
|
+
async () => {
|
|
150
|
+
const context = {
|
|
151
|
+
notes: ["mira_road_east_buy_srp - https://housing.com/in/buy/mumbai/mira_road_east",
|
|
152
|
+
"Filters on the filter screen may initially be offscreen and require scrolling to view.",
|
|
153
|
+
"This context enables dynamic decisions during automation without hardcoded actions.",
|
|
154
|
+
],
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
return `App context learned`;
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
|
|
145
161
|
|
|
146
162
|
tool("mobile_list_elements_on_screen", "List elements on screen and their coordinates, with display text or accessibility label. Do not cache this result.", {}, async ({}) => {
|
|
147
163
|
requireRobot();
|