Skip to content

Commit 6fe50da

Browse files
committed
feat(android-tools, ios-tools): add autoDismissKeyboard option for agent creation
1 parent 5c2fddb commit 6fe50da

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/android-mcp/src/android-tools.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export class AndroidMidsceneTools extends BaseMidsceneTools {
4141
}
4242

4343
debug('Creating Android agent with deviceId:', deviceId || 'auto-detect');
44-
const agent = await agentFromAdbDevice(deviceId);
44+
const agent = await agentFromAdbDevice(deviceId, {
45+
autoDismissKeyboard: false,
46+
});
4547
this.agent = agent as unknown as BaseAgent;
4648
return agent;
4749
}

packages/ios-mcp/src/ios-tools.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export class IOSMidsceneTools extends BaseMidsceneTools {
2929
}
3030

3131
debug('Creating iOS agent with WebDriverAgent');
32-
this.agent = await agentFromWebDriverAgent();
32+
this.agent = await agentFromWebDriverAgent({
33+
autoDismissKeyboard: false,
34+
});
3335
return this.agent;
3436
}
3537

0 commit comments

Comments
 (0)