Skip to main content
Glama

get_config

Retrieve configuration settings for the Browserless MCP Server to customize browser automation, PDF generation, and web scraping tasks.

Instructions

Get configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'get_config': calls BrowserlessClient.getConfig(), formats the result as MCP content with JSON stringified config.
    case 'get_config': { const result = await this.client!.getConfig(); if (result.success && result.data) { return { content: [ { type: 'text', text: 'Current configuration:', }, { type: 'text', text: JSON.stringify(result.data, null, 2), }, ], }; } else { throw new Error(result.error || 'Failed to get configuration'); } }
  • src/index.ts:259-266 (registration)
    Registration of the 'get_config' tool in the tools array, including description and empty input schema.
    { name: 'get_config', description: 'Get configuration', inputSchema: { type: 'object', properties: {}, }, },
  • Input schema for 'get_config' tool: empty object (no parameters required).
    inputSchema: { type: 'object', properties: {}, },
  • Core implementation of getConfig in BrowserlessClient: HTTP GET request to /config endpoint, returns BrowserlessResponse with config data or error.
    async getConfig(): Promise<BrowserlessResponse<any>> { try { const response: AxiosResponse<any> = await this.httpClient.get('/config'); return { success: true, data: response.data, }; } catch (error) { return this.handleError(error); } }

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/Lizzard-Solutions/browserless-mcp'

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