Skip to content

Commit 8f50704

Browse files
committed
Use action_inputs for browser_eval
1 parent 2eb0572 commit 8f50704

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const getLogsInputSchema = z.object({
106106
export const browserEvalInputSchema = z.object({
107107
action: z.string(),
108108
sid: z.string().optional().describe('The session to target, e.g. "nice-cactus#1".'),
109-
args: z
109+
action_inputs: z
110110
.object({})
111111
.passthrough()
112112
.optional()

test/mcp-browser-eval.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('browser_eval MCP tool', () => {
3333
expect(browserEval?.inputSchema.properties?.['action']).toMatchObject({
3434
type: 'string',
3535
});
36-
expect(browserEval?.inputSchema.properties?.['args']).toMatchObject({
36+
expect(browserEval?.inputSchema.properties?.['action_inputs']).toMatchObject({
3737
type: 'object',
3838
additionalProperties: true,
3939
});
@@ -119,15 +119,15 @@ describe('browser_eval MCP tool', () => {
119119

120120
const resultPromise = client.callTool({
121121
name: 'browser_eval',
122-
arguments: { action: 'eval', sid: 'nice-cactus#1', args: { code: '1+1' } },
122+
arguments: { action: 'eval', sid: 'nice-cactus#1', action_inputs: { code: '1+1' } },
123123
});
124124
const runTool = await waitForRunTool(sent);
125125

126126
expect(runTool).toMatchObject({
127127
type: 'run_tool',
128128
name: 'browser_eval',
129129
sid: 'nice-cactus#1',
130-
input: { action: 'eval', sid: 'nice-cactus#1', args: { code: '1+1' } },
130+
input: { action: 'eval', sid: 'nice-cactus#1', action_inputs: { code: '1+1' } },
131131
});
132132

133133
browserClient.receive(

0 commit comments

Comments
 (0)