Skip to main content
Glama

pilot_close

Close the browser and clean up resources to manage memory and end automation sessions.

Instructions

Close the browser and clean up all resources.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implementation of the 'pilot_close' tool handler, which closes the browser managed by `bm`.
    server.tool(
      'pilot_close',
      'Close the browser and clean up all resources.',
      {},
      async () => {
        try {
          await bm.close();
          return { content: [{ type: 'text' as const, text: 'Browser closed.' }] };
        } catch (err) {
          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