get_config
Retrieve configuration settings for the Browserless MCP Server to customize browser automation, PDF generation, and web scraping tasks.
Instructions
Get configuration
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:572-590 (handler)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: {}, }, }, - src/index.ts:262-265 (schema)Input schema for 'get_config' tool: empty object (no parameters required).
inputSchema: { type: 'object', properties: {}, }, - src/client.ts:307-318 (helper)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); } }