UNPKG

n8n-nodes-browser-use

Version:

n8n node to control browser-use AI-powered browser automation with Nodes-as-Tools support

51 lines 1.81 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BrowserUseLocalBridgeApi = void 0; class BrowserUseLocalBridgeApi { constructor() { this.name = 'browserUseLocalBridgeApi'; this.displayName = 'Browser Use Local Bridge API'; this.documentationUrl = 'https://github.com/yourusername/n8n-nodes-browser-use'; this.properties = [ { displayName: 'URL', name: 'url', type: 'string', default: 'http://localhost:8000', required: true, description: 'URL of the local Bridge service', }, { displayName: 'Authentication Token', name: 'token', type: 'string', typeOptions: { password: true, }, default: '', required: false, description: 'Token for authenticating with the local Bridge service (if enabled)', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '={{$credentials.token ? `Bearer ${$credentials.token}` : undefined}}', }, }, }; this.test = { request: { baseURL: '={{$credentials.url}}', url: '/api/v1/ping', method: 'GET', headers: { Authorization: '={{$credentials.token ? `Bearer ${$credentials.token}` : undefined}}', }, }, }; } } exports.BrowserUseLocalBridgeApi = BrowserUseLocalBridgeApi; //# sourceMappingURL=BrowserUseLocalBridgeApi.credentials.js.map