mobai-mcp 1.0.1 → 1.0.3
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/dist/index.js +9 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -368,6 +368,7 @@ Example DSL script:
|
|
|
368
368
|
steps: {
|
|
369
369
|
type: "array",
|
|
370
370
|
description: "Array of action steps",
|
|
371
|
+
items: { type: "object" },
|
|
371
372
|
},
|
|
372
373
|
on_fail: {
|
|
373
374
|
type: "object",
|
|
@@ -1101,16 +1102,22 @@ const WEB_RUNNER_GUIDE = `# Web Automation Guide
|
|
|
1101
1102
|
|
|
1102
1103
|
**Try native-runner first for simple taps/types.** Only use Web Runner when you need DOM manipulation, CSS selectors, or JavaScript execution.
|
|
1103
1104
|
|
|
1105
|
+
## iOS Simulator Limitation
|
|
1106
|
+
|
|
1107
|
+
**IMPORTANT: Web context is NOT supported on iOS simulators.** Web automation features (select_web_context, web DOM access, CSS selectors, JavaScript execution) only work on:
|
|
1108
|
+
- **Physical iOS devices** (iPhone, iPad)
|
|
1109
|
+
- **Android emulators and physical devices**
|
|
1110
|
+
|
|
1104
1111
|
## When to Use Web Runner
|
|
1105
1112
|
|
|
1106
|
-
|
|
1113
|
+
**USE Web Runner for:**
|
|
1107
1114
|
- Native runner returns NO_MATCH for web elements
|
|
1108
1115
|
- CSS selector-based element targeting
|
|
1109
1116
|
- JavaScript execution in page context
|
|
1110
1117
|
- DOM manipulation and inspection
|
|
1111
1118
|
- Complex form interactions requiring DOM access
|
|
1112
1119
|
|
|
1113
|
-
|
|
1120
|
+
**DO NOT use Web Runner for:**
|
|
1114
1121
|
- Browser address bar / URL bar → use Native Runner
|
|
1115
1122
|
- Browser tab bar → use Native Runner
|
|
1116
1123
|
- Browser navigation buttons (back, forward, refresh) → use Native Runner
|