Skip to main content
Glama
nfodor

Chromium ARM64 Browser

by nfodor

fill

Enter text into web form fields using CSS selectors to automate data input during browser testing on ARM64 devices.

Instructions

Fill an input field

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYesCSS selector for the input field
valueYesValue to fill

Implementation Reference

  • The core handler function for the 'fill' MCP tool. It ensures Chromium is running, clicks the selector to focus the input field, and uses CDP Input.insertText to fill the value.
    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}` }], }; }
  • Schema definition for the 'fill' tool returned in ListTools response, including input schema with required selector and value parameters.
    { 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 of the 'fill' tool handler in the CallToolRequestSchema dispatch switch statement.
    case 'fill': return await this.fill(args.selector, args.value);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nfodor/mcp-chromium-arm64'

If you have feedback or need assistance with the MCP directory API, please join our Discord server