get_health
Check the health status of Browserless MCP Server instances to ensure operational readiness for browser automation tasks, web scraping, and performance audits.
Instructions
Get health status of Browserless instance
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:532-550 (handler)MCP tool handler for 'get_health': calls client.getHealth(), formats and returns the health status response or throws error.case 'get_health': { const result = await this.client!.getHealth(); if (result.success && result.data) { return { content: [ { type: 'text', text: `Health status: ${result.data.status}`, }, { type: 'text', text: JSON.stringify(result.data, null, 2), }, ], }; } else { throw new Error(result.error || 'Failed to get health status'); } }
- src/index.ts:243-250 (schema)Tool schema definition for 'get_health' including name, description, and empty input schema.{ name: 'get_health', description: 'Get health status of Browserless instance', inputSchema: { type: 'object', properties: {}, }, },
- src/client.ts:275-286 (helper)Core implementation of getHealth() in BrowserlessClient: performs HTTP GET to /health endpoint and returns wrapped response.async getHealth(): Promise<BrowserlessResponse<HealthResponse>> { try { const response: AxiosResponse<HealthResponse> = await this.httpClient.get('/health'); return { success: true, data: response.data, }; } catch (error) { return this.handleError(error); } }