@nbakka/mcp-appium 4.0.6 → 4.0.7
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 +6 -0
- package/package.json +1 -1
package/lib/server.js
CHANGED
|
@@ -213,6 +213,12 @@ These are mandatory requirements - not suggestions.`;
|
|
|
213
213
|
}
|
|
214
214
|
);
|
|
215
215
|
|
|
216
|
+
tool("debug_dump_xml_structure", "DEBUG: Dump the raw parsed XML structure to see how fast-xml-parser creates the object", {}, async ({}) => {
|
|
217
|
+
requireRobot();
|
|
218
|
+
const structure = await robot.getXmlStructure();
|
|
219
|
+
return `Raw XML structure: ${JSON.stringify(structure, null, 2)}`;
|
|
220
|
+
});
|
|
221
|
+
|
|
216
222
|
tool("mobile_list_elements_on_screen", "List elements on screen in a simplified, flattened structure. Returns only useful attributes: text, class, id (resource-id), accessibilityId (content-desc), and bounds. Do not cache this result.", {}, async ({}) => {
|
|
217
223
|
requireRobot();
|
|
218
224
|
const elements = await robot.getSimplifiedElements();
|