Skip to content

Commit ff57aac

Browse files
committed
fix(android): update launchUri to launch in AndroidMidsceneTools
refactor(ios): remove unused path import in rslib.config refactor(shared): change agent.action to agent.aiAction in tool-generator
1 parent f9ae7f2 commit ff57aac

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class AndroidMidsceneTools extends BaseMidsceneTools {
6464

6565
// If URI is provided, launch the app
6666
if (uri) {
67-
await agent.page.launchUri(uri);
67+
await agent.page.launch(uri);
6868
await new Promise((resolve) => setTimeout(resolve, 2000)); // Wait for app to launch
6969
}
7070

packages/ios-mcp/rslib.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import path from 'node:path';
21
import { defineConfig } from '@rslib/core';
32
import { version } from './package.json';
43

packages/shared/src/mcp/tool-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function generateToolsFromActionSpace(
2626
const agent = await getAgent();
2727

2828
// Call the action through agent's action method
29-
await agent.action(`Use the action "${action.name}"`, {
29+
await agent.aiAction(`Use the action "${action.name}"`, {
3030
planType: action.name,
3131
...args,
3232
});

0 commit comments

Comments
 (0)