Skip to main content
Glama

fill

Automate filling input fields on websites using a CSS selector and specified value. Part of the chromium-arm64 MCP server for browser automation and web 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 handler function that implements the 'fill' tool logic. It focuses the input field by clicking it and inserts the provided value using Chrome DevTools Protocol (CDP) Input.insertText command.
    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}` }], }; }
  • The schema and registration of the 'fill' tool in the ListTools response, defining the input parameters: selector (CSS selector) and value (string to fill).
    { 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)
    The dispatch/registration point in the CallToolRequest handler switch statement that routes 'fill' tool calls to the fill handler method.
    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/claude-arm64-browser'

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