@@ -32,10 +32,10 @@ export const browserOperations: INodeProperties[] = [
32
32
action : 'Get session details' ,
33
33
} ,
34
34
{
35
- name : 'Delete Session' ,
36
- value : 'deleteSession ' ,
37
- description : 'Delete a browser session' ,
38
- action : 'Delete a browser session' ,
35
+ name : 'Close Session' ,
36
+ value : 'closeSession ' ,
37
+ description : 'Close a browser session (automatically uses previous node\'s session) ' ,
38
+ action : 'Close a browser session' ,
39
39
} ,
40
40
] ,
41
41
default : 'createSession' ,
@@ -151,7 +151,7 @@ const getSessionOperation: INodeProperties[] = [
151
151
displayOptions : {
152
152
show : {
153
153
resource : [ 'browserSession' ] ,
154
- operation : [ 'getSession' , 'deleteSession' ] ,
154
+ operation : [ 'getSession' ] ,
155
155
} ,
156
156
} ,
157
157
} ,
@@ -171,34 +171,34 @@ export const browserActionOperations: INodeProperties[] = [
171
171
} ,
172
172
options : [
173
173
{
174
- name : 'Navigate ' ,
175
- value : 'navigate ' ,
176
- description : 'Navigate to a URL ' ,
177
- action : 'Navigate to a URL ' ,
174
+ name : 'Act ' ,
175
+ value : 'act ' ,
176
+ description : 'Perform an action on the page using natural language (requires OpenAI API key) ' ,
177
+ action : 'Act on page ' ,
178
178
} ,
179
179
{
180
- name : 'Take Screenshot ' ,
181
- value : 'screenshot ' ,
182
- description : 'Take a screenshot ' ,
183
- action : 'Take a screenshot ' ,
180
+ name : 'Extract ' ,
181
+ value : 'extract ' ,
182
+ description : 'Extract structured data from the page (requires OpenAI API key) ' ,
183
+ action : 'Extract data ' ,
184
184
} ,
185
185
{
186
- name : 'Get Page Content ' ,
187
- value : 'getContent ' ,
188
- description : 'Get page content ' ,
189
- action : 'Get page content ' ,
186
+ name : 'Navigate ' ,
187
+ value : 'navigate ' ,
188
+ description : 'Navigate to a URL ' ,
189
+ action : 'Navigate to URL ' ,
190
190
} ,
191
191
{
192
- name : 'Click Element ' ,
193
- value : 'click ' ,
194
- description : 'Click on an element ' ,
195
- action : 'Click element ' ,
192
+ name : 'Observe ' ,
193
+ value : 'observe ' ,
194
+ description : 'Observe the page and get available actions (requires OpenAI API key) ' ,
195
+ action : 'Observe page ' ,
196
196
} ,
197
197
{
198
- name : 'Type Text ' ,
199
- value : 'type ' ,
200
- description : 'Type text into an element ' ,
201
- action : 'Type text ' ,
198
+ name : 'Screenshot ' ,
199
+ value : 'screenshot ' ,
200
+ description : 'Take a screenshot of the page ' ,
201
+ action : 'Take screenshot ' ,
202
202
} ,
203
203
] ,
204
204
default : 'navigate' ,
@@ -260,34 +260,6 @@ const browserActionFields: INodeProperties[] = [
260
260
} ,
261
261
} ,
262
262
} ,
263
- {
264
- displayName : 'Selector' ,
265
- name : 'selector' ,
266
- type : 'string' ,
267
- default : '' ,
268
- placeholder : '.my-element, #button, input[name="username"]' ,
269
- description : 'CSS selector for the element' ,
270
- displayOptions : {
271
- show : {
272
- resource : [ 'browserAction' ] ,
273
- operation : [ 'click' , 'type' , 'getContent' ] ,
274
- } ,
275
- } ,
276
- } ,
277
- {
278
- displayName : 'Text' ,
279
- name : 'text' ,
280
- type : 'string' ,
281
- required : true ,
282
- default : '' ,
283
- description : 'The text to type' ,
284
- displayOptions : {
285
- show : {
286
- resource : [ 'browserAction' ] ,
287
- operation : [ 'type' ] ,
288
- } ,
289
- } ,
290
- } ,
291
263
{
292
264
displayName : 'Screenshot Options' ,
293
265
name : 'screenshotOptions' ,
@@ -314,10 +286,93 @@ const browserActionFields: INodeProperties[] = [
314
286
type : 'string' ,
315
287
default : '' ,
316
288
placeholder : '.screenshot-area' ,
317
- description : 'CSS selector for element to screenshot' ,
289
+ description : 'CSS selector for element to screenshot (optional) ' ,
318
290
} ,
319
291
] ,
320
292
} ,
293
+ {
294
+ displayName : 'Action' ,
295
+ name : 'action' ,
296
+ type : 'string' ,
297
+ required : true ,
298
+ default : '' ,
299
+ placeholder : 'Click the login button' ,
300
+ typeOptions : {
301
+ rows : 3 ,
302
+ } ,
303
+ displayOptions : {
304
+ show : {
305
+ resource : [ 'browserAction' ] ,
306
+ operation : [ 'act' ] ,
307
+ } ,
308
+ } ,
309
+ } ,
310
+ {
311
+ displayName : 'Instruction' ,
312
+ name : 'instruction' ,
313
+ type : 'string' ,
314
+ required : true ,
315
+ default : '' ,
316
+ placeholder : 'Find all clickable buttons on the page' ,
317
+ description : 'Instruction for what to observe on the page' ,
318
+ typeOptions : {
319
+ rows : 3 ,
320
+ } ,
321
+ displayOptions : {
322
+ show : {
323
+ resource : [ 'browserAction' ] ,
324
+ operation : [ 'observe' ] ,
325
+ } ,
326
+ } ,
327
+ } ,
328
+ {
329
+ displayName : 'Return Actions' ,
330
+ name : 'returnActions' ,
331
+ type : 'boolean' ,
332
+ default : false ,
333
+ description : 'Whether to return actionable elements that can be used with the act operation' ,
334
+ displayOptions : {
335
+ show : {
336
+ resource : [ 'browserAction' ] ,
337
+ operation : [ 'observe' ] ,
338
+ } ,
339
+ } ,
340
+ } ,
341
+ {
342
+ displayName : 'Instruction' ,
343
+ name : 'instruction' ,
344
+ type : 'string' ,
345
+ required : true ,
346
+ default : '' ,
347
+ placeholder : 'Extract all product information from this page' ,
348
+ description : 'Instruction for what data to extract from the page' ,
349
+ typeOptions : {
350
+ rows : 3 ,
351
+ } ,
352
+ displayOptions : {
353
+ show : {
354
+ resource : [ 'browserAction' ] ,
355
+ operation : [ 'extract' ] ,
356
+ } ,
357
+ } ,
358
+ } ,
359
+ {
360
+ displayName : 'Schema (JSON)' ,
361
+ name : 'schema' ,
362
+ type : 'json' ,
363
+ required : true ,
364
+ default : '{\n "type": "object",\n "properties": {\n "title": {\n "type": "string",\n "description": "Page title"\n }\n },\n "required": ["title"]\n}' ,
365
+ description : 'JSON Schema defining the structure of data to extract. Use Zod-compatible schema format.' ,
366
+ typeOptions : {
367
+ rows : 10 ,
368
+ } ,
369
+ displayOptions : {
370
+ show : {
371
+ resource : [ 'browserAction' ] ,
372
+ operation : [ 'extract' ] ,
373
+ } ,
374
+ } ,
375
+ } ,
321
376
] ;
322
377
323
378
export const browserFields : INodeProperties [ ] = [
0 commit comments