get_config
Retrieve configuration settings for the Browserless MCP Server to manage browser automation tasks, such as PDF generation, screenshots, and web scraping.
Instructions
Get configuration
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/client.ts:307-318 (handler)Core handler implementation for fetching Browserless configuration via HTTP GET to /config endpoint.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); } }
- src/index.ts:572-590 (handler)MCP server tool dispatch handler for 'get_config', calls client.getConfig() and formats the response as MCP content.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:260-266 (registration)Registration of the 'get_config' tool in the ListTools response, including its name, description, and input schema.name: 'get_config', description: 'Get configuration', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:262-265 (schema)Input schema for the 'get_config' tool (empty object, no parameters required).inputSchema: { type: 'object', properties: {}, },