MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / execute

Method execute

src/tools/browser/tools.ts:134–146  ·  view source on GitHub ↗
(args: z.infer<typeof ClickArgs>, _ctx: ToolContext)

Source from the content-addressed store, hash-verified

132 argsSchema = ClickArgs;
133
134 async execute(args: z.infer<typeof ClickArgs>, _ctx: ToolContext): Promise<ToolResult> {
135 try {
136 const s = await getSession();
137 await s.page.click(args.selector, {
138 timeout: args.timeout_ms ?? 5000,
139 button: args.button ?? 'left',
140 clickCount: args.click_count ?? 1,
141 });
142 return { content: `Clicked: ${args.selector}` };
143 } catch (e: any) {
144 return { content: `[BROWSER_ERROR] click failed for "${args.selector}": ${e?.message ?? String(e)}`, isError: true };
145 }
146 }
147}
148
149const FillArgs = z.object({

Callers

nothing calls this directly

Calls 1

getSessionFunction · 0.85

Tested by

no test coverage detected