n8n-nodes-browser-use
Version:
n8n node to control browser-use AI-powered browser automation with Nodes-as-Tools support
48 lines • 1.64 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BrowserUseLocalBridge = void 0;
class BrowserUseLocalBridge {
constructor() {
this.name = 'browserUseLocalBridge';
this.displayName = 'Browser Use Local Bridge';
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',
},
};
}
}
exports.BrowserUseLocalBridge = BrowserUseLocalBridge;
//# sourceMappingURL=BrowserUseLocalBridge.credentials.js.map