Skip to main content
Glama

pilot_type

Type text character by character into focused web elements for automated browser interactions.

Instructions

Type text into the currently focused element (character by character).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to type
submitNoPress Enter after typing

Implementation Reference

  • Implementation of the pilot_type tool handler in src/tools/interaction.ts.
    server.tool(
      'pilot_type',
      'Type text into the currently focused element (character by character).',
      {
        text: z.string().describe('Text to type'),
        submit: z.boolean().optional().describe('Press Enter after typing'),
      },
      async ({ text, submit }) => {
        await bm.ensureBrowser();
        try {
          const page = bm.getPage();
          await page.keyboard.type(text);
          if (submit) await page.keyboard.press('Enter');
          bm.resetFailures();
          return { content: [{ type: 'text' as const, text: `Typed ${text.length} characters${submit ? ' + Enter' : ''}` }] };
        } catch (err) {
          bm.incrementFailures();
          return { content: [{ type: 'text' as const, text: wrapError(err) }], isError: true };
        }
      }
    );

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/TacosyHorchata/Pilot'

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