n8n-nodes-smart-browser-automation 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -287,11 +287,7 @@ class SmartBrowserAutomation {
|
|
|
287
287
|
// AI Agent mode: Just initialize or close
|
|
288
288
|
const operation = this.getNodeParameter('operation', i);
|
|
289
289
|
if (operation === 'initialize') {
|
|
290
|
-
|
|
291
|
-
const cdpUrl = options.cdpUrl || credentials.cdpEndpoint;
|
|
292
|
-
if (verbose) {
|
|
293
|
-
console.log(`Initializing AI session with CDP: ${cdpUrl}`);
|
|
294
|
-
}
|
|
290
|
+
const cdpUrl = credentials.cdpEndpoint;
|
|
295
291
|
const tools = await sessionManager.initialize(credentials.mcpEndpoint, true, cdpUrl);
|
|
296
292
|
let connectionStatus = 'Skipped (No CDP URL provided)';
|
|
297
293
|
let connectionResult = null;
|
|
@@ -316,7 +312,7 @@ class SmartBrowserAutomation {
|
|
|
316
312
|
browserConnection: connectionStatus,
|
|
317
313
|
browserResponse: connectionResult,
|
|
318
314
|
totalToolsAvailable: tools.length,
|
|
319
|
-
|
|
315
|
+
availableTools: tools.map(t => t.name),
|
|
320
316
|
},
|
|
321
317
|
pairedItem: i,
|
|
322
318
|
});
|