fill
Automate form filling in web applications on ARM64 devices using a CSS selector and specified value. Enhances browser testing workflows on the Chromium ARM64 Browser MCP server.
Instructions
Fill an input field
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector for the input field | |
| value | Yes | Value to fill |
Implementation Reference
- index.js:677-687 (handler)The main handler function for the 'fill' tool. It ensures Chromium is running, clicks the selector to focus the input, then inserts the value using Chrome DevTools Protocol (CDP) Input.insertText command. Returns a confirmation message.async fill(selector, value) { await this.ensureChromium(); await this.click(selector); // Focus element first // Clear and type await this.sendCDPCommand('Input.insertText', { text: value }); return { content: [{ type: 'text', text: `Filled ${selector} with: ${value}` }], }; }
- index.js:152-169 (schema)The tool schema definition including name, description, and input schema (CSS selector and value, both required strings). This is returned by the ListTools handler.{ name: 'fill', description: 'Fill an input field', inputSchema: { type: 'object', properties: { selector: { type: 'string', description: 'CSS selector for the input field', }, value: { type: 'string', description: 'Value to fill', }, }, required: ['selector', 'value'], }, },
- index.js:357-358 (registration)Registration/dispatch in the CallToolRequestSchema handler switch statement, which routes calls to the fill method.case 'fill': return await this.fill(args.selector, args.value);