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

Method execute

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

Source from the content-addressed store, hash-verified

160 argsSchema = FillArgs;
161
162 async execute(args: z.infer<typeof FillArgs>, _ctx: ToolContext): Promise<ToolResult> {
163 try {
164 const s = await getSession();
165 await s.page.fill(args.selector, args.value, { timeout: args.timeout_ms ?? 5000 });
166 return { content: `Filled ${args.selector} with ${args.value.length} char(s)` };
167 } catch (e: any) {
168 return { content: `[BROWSER_ERROR] fill failed for "${args.selector}": ${e?.message ?? String(e)}`, isError: true };
169 }
170 }
171}
172
173const ScreenshotArgs = z.object({

Callers

nothing calls this directly

Calls 1

getSessionFunction · 0.85

Tested by

no test coverage detected