langflow-mcp-server 3.1.0 → 4.11.0

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.
Files changed (33) hide show
  1. package/README.md +228 -79
  2. package/dist/__tests__/fixtures/vertices.d.ts +1 -2
  3. package/dist/__tests__/fixtures/vertices.d.ts.map +1 -1
  4. package/dist/__tests__/fixtures/vertices.js +1 -5
  5. package/dist/__tests__/fixtures/vertices.js.map +1 -1
  6. package/dist/mcp/server-consolidated.d.ts +13 -0
  7. package/dist/mcp/server-consolidated.d.ts.map +1 -1
  8. package/dist/mcp/server-consolidated.js +713 -44
  9. package/dist/mcp/server-consolidated.js.map +1 -1
  10. package/dist/mcp/server.d.ts.map +1 -1
  11. package/dist/mcp/server.js +749 -50
  12. package/dist/mcp/server.js.map +1 -1
  13. package/dist/mcp/tools-consolidated.d.ts.map +1 -1
  14. package/dist/mcp/tools-consolidated.js +722 -43
  15. package/dist/mcp/tools-consolidated.js.map +1 -1
  16. package/dist/mcp/tools.d.ts.map +1 -1
  17. package/dist/mcp/tools.js +1701 -66
  18. package/dist/mcp/tools.js.map +1 -1
  19. package/dist/mcp/validation-consolidated.d.ts +681 -9
  20. package/dist/mcp/validation-consolidated.d.ts.map +1 -1
  21. package/dist/mcp/validation-consolidated.js +635 -15
  22. package/dist/mcp/validation-consolidated.js.map +1 -1
  23. package/dist/mcp/validation.d.ts +769 -11
  24. package/dist/mcp/validation.d.ts.map +1 -1
  25. package/dist/mcp/validation.js +600 -11
  26. package/dist/mcp/validation.js.map +1 -1
  27. package/dist/services/langflow-client.d.ts +133 -51
  28. package/dist/services/langflow-client.d.ts.map +1 -1
  29. package/dist/services/langflow-client.js +1102 -154
  30. package/dist/services/langflow-client.js.map +1 -1
  31. package/dist/types/index.d.ts +395 -4
  32. package/dist/types/index.d.ts.map +1 -1
  33. package/package.json +16 -13
@@ -19,30 +19,37 @@ Actions:
19
19
  - get_public: Get a publicly shared flow
20
20
  - get_examples: Get basic flow examples
21
21
  - get_starters: List starter project templates
22
+ - replace: Replace (PUT) an entire flow by ID
23
+ - expand: Expand bundled/expandable flows
24
+ - note_translations: Get localized note-node translations for a flow (Langflow 1.10.0)
22
25
 
23
26
  Examples:
24
27
  - List flows: { "action": "list", "page": 1, "size": 10 }
25
28
  - Get flow: { "action": "get", "flow_id": "uuid" }
26
29
  - Create flow: { "action": "create", "name": "My Flow" }
27
- - Delete flow: { "action": "delete", "flow_id": "uuid" }`,
30
+ - Delete flow: { "action": "delete", "flow_id": "uuid" }
31
+ - Replace flow: { "action": "replace", "flow_id": "uuid", "name": "New" }
32
+ - Expand flows: { "action": "expand", "body": {} }
33
+ - Note translations: { "action": "note_translations", "flow_id": "uuid" }`,
28
34
  inputSchema: {
29
35
  type: 'object',
30
36
  properties: {
31
37
  action: {
32
38
  type: 'string',
33
- enum: ['list', 'get', 'create', 'update', 'delete', 'delete_many', 'batch_create', 'download', 'upload', 'get_public', 'get_examples', 'get_starters'],
39
+ enum: ['list', 'get', 'create', 'update', 'delete', 'delete_many', 'batch_create', 'download', 'upload', 'get_public', 'get_examples', 'get_starters', 'replace', 'expand', 'note_translations'],
34
40
  description: 'Action to perform'
35
41
  },
36
- flow_id: { type: 'string', description: 'Flow ID (UUID) - required for get, update, delete, get_public' },
42
+ flow_id: { type: 'string', description: 'Flow ID (UUID) - required for get, update, delete, get_public, replace, note_translations' },
37
43
  flow_ids: { type: 'array', items: { type: 'string' }, description: 'Array of flow IDs - for delete_many, download' },
38
- name: { type: 'string', description: 'Flow name - for create, update' },
39
- description: { type: 'string', description: 'Flow description - for create, update' },
40
- data: { type: 'object', description: 'Flow data/structure - for create, update' },
41
- folder_id: { type: 'string', description: 'Folder ID - for list, create, update' },
44
+ name: { type: 'string', description: 'Flow name - for create, update, replace' },
45
+ description: { type: 'string', description: 'Flow description - for create, update, replace' },
46
+ data: { type: 'object', description: 'Flow data/structure - for create, update, replace' },
47
+ folder_id: { type: 'string', description: 'Folder ID - for list, create, update, replace' },
42
48
  page: { type: 'number', description: 'Page number for pagination' },
43
49
  size: { type: 'number', description: 'Page size (max 100)' },
44
50
  file: { type: 'object', description: 'File object {name, content} - for upload' },
45
- flows: { type: 'array', description: 'Array of flow objects - for batch_create' }
51
+ flows: { type: 'array', description: 'Array of flow objects - for batch_create' },
52
+ body: { type: 'object', description: 'Request body - for expand' }
46
53
  },
47
54
  required: ['action']
48
55
  },
@@ -85,8 +92,9 @@ Examples:
85
92
  output_component: { type: 'string', description: 'Specific output component' },
86
93
  tweaks: { type: 'object', description: 'Component parameter overrides' },
87
94
  session_id: { type: 'string', description: 'Session ID for conversation continuity' },
95
+ context: { type: 'object', description: 'Request context for simplified run/session execution' },
88
96
  user_id: { type: 'string', description: 'User ID for user-scoped execution' },
89
- stream: { type: 'boolean', description: 'Enable streaming mode' },
97
+ stream: { type: 'boolean', description: 'Streaming is currently rejected by this MCP client for run and run_session' },
90
98
  inputs: { type: 'object', description: 'Input values - for process, predict' }
91
99
  },
92
100
  required: ['action']
@@ -107,7 +115,6 @@ Actions:
107
115
  - status: Get build job status
108
116
  - cancel: Cancel a running build
109
117
  - vertices: Build specific vertices
110
- - get_vertex: Get vertex details
111
118
  - stream_vertex: Stream vertex build (deprecated)
112
119
  - task_status: Get async task status
113
120
 
@@ -120,13 +127,13 @@ Examples:
120
127
  properties: {
121
128
  action: {
122
129
  type: 'string',
123
- enum: ['start', 'status', 'cancel', 'vertices', 'get_vertex', 'stream_vertex', 'task_status'],
130
+ enum: ['start', 'status', 'cancel', 'vertices', 'stream_vertex', 'task_status'],
124
131
  description: 'Build action'
125
132
  },
126
133
  flow_id: { type: 'string', description: 'Flow ID (UUID)' },
127
134
  job_id: { type: 'string', description: 'Build job ID - for status, cancel' },
128
135
  task_id: { type: 'string', description: 'Task ID - for task_status' },
129
- vertex_id: { type: 'string', description: 'Vertex ID - for get_vertex, stream_vertex' },
136
+ vertex_id: { type: 'string', description: 'Vertex ID - for stream_vertex' },
130
137
  inputs: { type: 'object', description: 'Build inputs' },
131
138
  data: { type: 'object', description: 'Build data - for vertices' },
132
139
  files: { type: 'array', description: 'Files for build' },
@@ -235,23 +242,26 @@ Actions:
235
242
  - create: Create a new variable
236
243
  - update: Update variable
237
244
  - delete: Delete variable
245
+ - detect: Detect variables referenced by flow versions
238
246
 
239
247
  Examples:
240
248
  - List: { "action": "list" }
241
- - Create: { "action": "create", "name": "API_KEY", "value": "xxx" }`,
249
+ - Create: { "action": "create", "name": "API_KEY", "value": "xxx" }
250
+ - Detect: { "action": "detect", "flow_version_ids": ["v1"] }`,
242
251
  inputSchema: {
243
252
  type: 'object',
244
253
  properties: {
245
254
  action: {
246
255
  type: 'string',
247
- enum: ['list', 'create', 'update', 'delete'],
256
+ enum: ['list', 'create', 'update', 'delete', 'detect'],
248
257
  description: 'Variable action'
249
258
  },
250
259
  variable_id: { type: 'string', description: 'Variable ID (UUID)' },
251
260
  name: { type: 'string', description: 'Variable name' },
252
261
  value: { type: 'string', description: 'Variable value' },
253
262
  type: { type: 'string', description: 'Variable type' },
254
- default_fields: { type: 'array', description: 'Default fields' }
263
+ default_fields: { type: 'array', description: 'Default fields' },
264
+ flow_version_ids: { type: 'array', items: { type: 'string' }, description: 'Flow version IDs - for detect' }
255
265
  },
256
266
  required: ['action']
257
267
  },
@@ -271,23 +281,63 @@ Actions:
271
281
  - get: Get knowledge base details
272
282
  - delete: Delete a knowledge base
273
283
  - bulk_delete: Delete multiple knowledge bases
274
- - upload: Upload file to knowledge base
284
+ - upload: Ingest a file into an existing knowledge base
285
+ - create: Create a knowledge base
286
+ - list_detailed: List knowledge bases with full detail
287
+ - list_chunks: List chunks within a knowledge base
288
+ - ingest: Ingest a file into a knowledge base
289
+ - preview_chunks: Preview chunking of a file
290
+ - cancel_ingest: Cancel an in-progress ingestion
291
+ - test_connection: Test a vector backend connection (Langflow 1.10.0)
292
+ - list_connectors: List available ingestion connectors (Langflow 1.10.0)
293
+ - ingest_folder: Ingest a server-side folder into a KB (Langflow 1.10.0)
294
+ - ingest_connector: Ingest from a connector source into a KB (Langflow 1.10.0)
295
+ - metadata_keys: List distinct metadata keys/values in a KB (Langflow 1.10.0)
296
+ - list_runs: List ingestion runs for a KB (Langflow 1.10.0)
297
+ - get_run: Get a single ingestion run by ID (Langflow 1.10.0)
275
298
 
276
299
  Examples:
277
300
  - List: { "action": "list" }
278
- - Upload: { "action": "upload", "kb_name": "my-kb", "file_content": "base64...", "file_name": "doc.pdf" }`,
301
+ - Upload: { "action": "upload", "kb_name": "existing-kb", "file_content": "base64...", "file_name": "doc.pdf" }
302
+ - Create: { "action": "create", "name": "kb", "embedding_provider": "openai", "embedding_model": "text-embedding-3-small" }
303
+ - Test connection: { "action": "test_connection", "backend_type": "chroma" }
304
+ - Ingest folder: { "action": "ingest_folder", "kb_name": "kb", "path": "/data/docs" }
305
+ - List runs: { "action": "list_runs", "kb_name": "kb" }`,
279
306
  inputSchema: {
280
307
  type: 'object',
281
308
  properties: {
282
309
  action: {
283
310
  type: 'string',
284
- enum: ['list', 'get', 'delete', 'bulk_delete', 'upload'],
311
+ enum: ['list', 'get', 'delete', 'bulk_delete', 'upload', 'create', 'list_detailed', 'list_chunks', 'ingest', 'preview_chunks', 'cancel_ingest', 'test_connection', 'list_connectors', 'ingest_folder', 'ingest_connector', 'metadata_keys', 'list_runs', 'get_run'],
285
312
  description: 'Knowledge base action'
286
313
  },
287
314
  kb_name: { type: 'string', description: 'Knowledge base name' },
288
315
  kb_names: { type: 'array', items: { type: 'string' }, description: 'KB names - for bulk_delete' },
289
- file_content: { type: 'string', description: 'Base64 file content - for upload' },
290
- file_name: { type: 'string', description: 'File name - for upload' }
316
+ file_content: { type: 'string', description: 'Base64 file content - for upload, ingest, preview_chunks' },
317
+ file_name: { type: 'string', description: 'File name - for upload, ingest, preview_chunks' },
318
+ name: { type: 'string', description: 'Knowledge base name - for create' },
319
+ embedding_provider: { type: 'string', description: 'Embedding provider - for create' },
320
+ embedding_model: { type: 'string', description: 'Embedding model - for create' },
321
+ column_config: { type: 'array', description: 'Column config - for create' },
322
+ page: { type: 'number', description: 'Page number - for list_chunks, list_runs' },
323
+ limit: { type: 'number', description: 'Limit - for list_chunks, list_runs' },
324
+ search: { type: 'string', description: 'Search query - for list_chunks' },
325
+ params: { type: 'object', description: 'Optional chunk/ingest params - for ingest, preview_chunks' },
326
+ backend_type: { type: 'string', description: 'Vector backend type (e.g. chroma, opensearch) - for test_connection' },
327
+ backend_config: { type: 'object', description: 'Backend configuration - for test_connection' },
328
+ path: { type: 'string', description: 'Server-side folder path - for ingest_folder' },
329
+ recursive: { type: 'boolean', description: 'Recurse into subfolders - for ingest_folder' },
330
+ extensions: { type: 'array', items: { type: 'string' }, description: 'File extensions filter - for ingest_folder' },
331
+ max_file_size_bytes: { type: 'number', description: 'Max file size in bytes - for ingest_folder' },
332
+ source_name: { type: 'string', description: 'Source label - for ingest_folder, ingest_connector' },
333
+ chunk_size: { type: 'number', description: 'Chunk size - for ingest_folder, ingest_connector' },
334
+ chunk_overlap: { type: 'number', description: 'Chunk overlap - for ingest_folder, ingest_connector' },
335
+ separator: { type: 'string', description: 'Chunk separator - for ingest_folder, ingest_connector' },
336
+ metadata: { type: 'object', description: 'Metadata applied to all items - for ingest_folder' },
337
+ per_file_metadata: { type: 'object', description: 'Per-file metadata map - for ingest_folder' },
338
+ source_type: { type: 'string', description: 'Connector source type - for ingest_connector' },
339
+ source_config: { type: 'object', description: 'Connector source configuration - for ingest_connector' },
340
+ run_id: { type: 'string', description: 'Ingestion run ID - for get_run' }
291
341
  },
292
342
  required: ['action']
293
343
  },
@@ -347,26 +397,42 @@ Actions:
347
397
  - get_session_messages: Get messages for a session
348
398
  - migrate_session: Migrate session to new flow
349
399
  - get_transactions: Get transaction history
400
+ - update_message: Update a monitor message
401
+ - delete_session_messages: Delete all messages for a session
402
+ - delete_sessions: Delete multiple sessions
403
+ - get_shared: Get shared messages for a source flow
404
+ - get_shared_sessions: List shared sessions for a source flow
405
+ - update_shared: Update a shared message
406
+ - migrate_shared_session: Migrate a shared session id
407
+ - delete_shared_session: Delete a shared session
408
+ - job_queue: Get job-queue metrics snapshot (superuser; Langflow 1.10.0)
350
409
 
351
410
  Examples:
352
411
  - Get builds: { "action": "get_builds", "flow_id": "uuid" }
353
- - Get messages: { "action": "get_messages", "session_id": "sess-1" }`,
412
+ - Get messages: { "action": "get_messages", "session_id": "sess-1" }
413
+ - Update message: { "action": "update_message", "message_id": "m1", "text": "hi" }
414
+ - Job queue: { "action": "job_queue" }`,
354
415
  inputSchema: {
355
416
  type: 'object',
356
417
  properties: {
357
418
  action: {
358
419
  type: 'string',
359
- enum: ['get_builds', 'delete_builds', 'get_messages', 'get_message', 'delete_messages', 'get_sessions', 'get_session_messages', 'migrate_session', 'get_transactions'],
420
+ enum: ['get_builds', 'delete_builds', 'get_messages', 'get_message', 'delete_messages', 'get_sessions', 'get_session_messages', 'migrate_session', 'get_transactions', 'update_message', 'delete_session_messages', 'delete_sessions', 'get_shared', 'get_shared_sessions', 'update_shared', 'migrate_shared_session', 'delete_shared_session', 'job_queue'],
360
421
  description: 'Monitor action'
361
422
  },
362
423
  flow_id: { type: 'string', description: 'Flow ID (UUID)' },
363
424
  session_id: { type: 'string', description: 'Session ID' },
425
+ session_ids: { type: 'array', items: { type: 'string' }, description: 'Session IDs - for delete_sessions' },
364
426
  message_id: { type: 'string', description: 'Message ID' },
365
427
  message_ids: { type: 'array', items: { type: 'string' }, description: 'Message IDs - for delete' },
366
- sender: { type: 'string', description: 'Filter by sender' },
367
- sender_name: { type: 'string', description: 'Filter by sender name' },
428
+ sender: { type: 'string', description: 'Filter by sender / message sender' },
429
+ sender_name: { type: 'string', description: 'Filter by sender name / message sender name' },
368
430
  order_by: { type: 'string', description: 'Order by field' },
369
- new_session_id: { type: 'string', description: 'New session ID - for migrate' }
431
+ new_session_id: { type: 'string', description: 'New session ID - for migrate, migrate_shared_session' },
432
+ source_flow_id: { type: 'string', description: 'Source flow ID - for shared actions' },
433
+ text: { type: 'string', description: 'Message text - for update_message, update_shared' },
434
+ files: { type: 'array', items: { type: 'string' }, description: 'Message files - for update_message, update_shared' },
435
+ properties: { type: 'object', description: 'Message properties - for update_message, update_shared' }
370
436
  },
371
437
  required: ['action']
372
438
  },
@@ -383,24 +449,27 @@ Examples:
383
449
 
384
450
  Actions:
385
451
  - list: List all users (admin)
386
- - get: Get user by ID
387
452
  - get_current: Get current authenticated user
388
453
  - update: Update user profile
389
454
  - reset_password: Reset user password (admin)
455
+ - create: Create a new user (admin)
390
456
 
391
457
  Examples:
392
458
  - Get current: { "action": "get_current" }
393
- - Update: { "action": "update", "user_id": "uuid", "username": "newname" }`,
459
+ - Update: { "action": "update", "user_id": "uuid", "username": "newname" }
460
+ - Create: { "action": "create", "username": "bob", "password": "secret" }`,
394
461
  inputSchema: {
395
462
  type: 'object',
396
463
  properties: {
397
464
  action: {
398
465
  type: 'string',
399
- enum: ['list', 'get', 'get_current', 'update', 'reset_password'],
466
+ enum: ['list', 'get_current', 'update', 'reset_password', 'create'],
400
467
  description: 'User action'
401
468
  },
402
469
  user_id: { type: 'string', description: 'User ID (UUID)' },
403
- username: { type: 'string', description: 'Username' },
470
+ username: { type: 'string', description: 'Username - for update, create' },
471
+ password: { type: 'string', description: 'Password - for create' },
472
+ optins: { type: 'object', description: 'Opt-in settings - for create' },
404
473
  profile_image: { type: 'string', description: 'Profile image URL' },
405
474
  is_active: { type: 'boolean', description: 'Active status' },
406
475
  is_superuser: { type: 'boolean', description: 'Superuser status' },
@@ -429,22 +498,25 @@ Actions:
429
498
  - list_keys: List API keys
430
499
  - create_key: Create new API key
431
500
  - delete_key: Delete API key
501
+ - save_store_key: Save the Langflow Store API key
432
502
 
433
503
  Examples:
434
504
  - Login: { "action": "login", "username": "user", "password": "pass" }
435
- - Create key: { "action": "create_key", "name": "My API Key" }`,
505
+ - Create key: { "action": "create_key", "name": "My API Key" }
506
+ - Save store key: { "action": "save_store_key", "api_key": "sk-..." }`,
436
507
  inputSchema: {
437
508
  type: 'object',
438
509
  properties: {
439
510
  action: {
440
511
  type: 'string',
441
- enum: ['login', 'auto_login', 'logout', 'refresh', 'list_keys', 'create_key', 'delete_key'],
512
+ enum: ['login', 'auto_login', 'logout', 'refresh', 'list_keys', 'create_key', 'delete_key', 'save_store_key'],
442
513
  description: 'Auth action'
443
514
  },
444
515
  username: { type: 'string', description: 'Username - for login' },
445
516
  password: { type: 'string', description: 'Password - for login' },
446
517
  name: { type: 'string', description: 'API key name - for create_key' },
447
- api_key_id: { type: 'string', description: 'API key ID - for delete_key' }
518
+ api_key_id: { type: 'string', description: 'API key ID - for delete_key' },
519
+ api_key: { type: 'string', description: 'Store API key - for save_store_key' }
448
520
  },
449
521
  required: ['action']
450
522
  },
@@ -461,7 +533,6 @@ Examples:
461
533
 
462
534
  Actions:
463
535
  - list_components: List available components
464
- - list_custom: List custom components
465
536
  - create_custom: Create custom component
466
537
  - check: Check store availability
467
538
  - check_key: Validate store API key
@@ -469,26 +540,41 @@ Actions:
469
540
  - get_store: Get store component details
470
541
  - list_tags: List store tags
471
542
  - get_likes: Get user's liked components
543
+ - create_store: Publish a component to the store
544
+ - like: Like a store component
545
+ - update_custom: Update custom component code/template
472
546
 
473
547
  Examples:
474
548
  - List components: { "action": "list_components" }
475
- - Create custom: { "action": "create_custom", "name": "MyComponent", "code": "..." }`,
549
+ - Create custom: { "action": "create_custom", "name": "MyComponent", "code": "..." }
550
+ - Like: { "action": "like", "component_id": "id" }`,
476
551
  inputSchema: {
477
552
  type: 'object',
478
553
  properties: {
479
554
  action: {
480
555
  type: 'string',
481
- enum: ['list_components', 'list_custom', 'create_custom', 'check', 'check_key', 'list_store', 'get_store', 'list_tags', 'get_likes'],
556
+ enum: ['list_components', 'create_custom', 'check', 'check_key', 'list_store', 'get_store', 'list_tags', 'get_likes', 'create_store', 'like', 'update_custom'],
482
557
  description: 'Store action'
483
558
  },
484
- component_id: { type: 'string', description: 'Component ID' },
485
- name: { type: 'string', description: 'Component name - for create_custom' },
486
- code: { type: 'string', description: 'Python code - for create_custom' },
559
+ component_id: { type: 'string', description: 'Component ID - for get_store, like' },
560
+ name: { type: 'string', description: 'Component name - for create_custom, create_store' },
561
+ code: { type: 'string', description: 'Python code - for create_custom, update_custom' },
487
562
  api_key: { type: 'string', description: 'Store API key - for check_key' },
488
563
  search: { type: 'string', description: 'Search query - for list_store' },
489
- tags: { type: 'array', description: 'Filter by tags - for list_store' },
564
+ tags: { type: 'array', description: 'Filter by tags / component tags - for list_store, create_store' },
490
565
  page: { type: 'number', description: 'Page number' },
491
- size: { type: 'number', description: 'Page size' }
566
+ size: { type: 'number', description: 'Page size' },
567
+ description: { type: 'string', description: 'Component description - for create_store' },
568
+ data: { type: 'object', description: 'Component data - for create_store' },
569
+ is_component: { type: 'boolean', description: 'Whether it is a component - for create_store' },
570
+ parent: { type: 'string', description: 'Parent component ID - for create_store' },
571
+ last_tested_version: { type: 'string', description: 'Last tested version - for create_store' },
572
+ private: { type: 'boolean', description: 'Private flag - for create_store' },
573
+ field: { type: 'string', description: 'Target field - for update_custom' },
574
+ template: { type: 'object', description: 'Component template - for update_custom' },
575
+ field_value: { description: 'New field value - for update_custom' },
576
+ frontend_node: { type: 'object', description: 'Frontend node - for update_custom' },
577
+ tool_mode: { type: 'boolean', description: 'Tool mode - for update_custom' }
492
578
  },
493
579
  required: ['action']
494
580
  },
@@ -571,21 +657,27 @@ Actions:
571
657
  - list_pictures: List profile pictures
572
658
  - get_picture: Get a profile picture
573
659
  - list_voices: List ElevenLabs voices
660
+ - session: Get current session info
661
+ - webhook_events: Get webhook events for a flow
662
+ - health_check: Detailed root health check
574
663
 
575
664
  Examples:
576
665
  - Health check: { "action": "health" }
577
- - Get version: { "action": "version" }`,
666
+ - Get version: { "action": "version" }
667
+ - Webhook events: { "action": "webhook_events", "flow_id_or_name": "my-flow" }`,
578
668
  inputSchema: {
579
669
  type: 'object',
580
670
  properties: {
581
671
  action: {
582
672
  type: 'string',
583
- enum: ['health', 'version', 'logs', 'list_pictures', 'get_picture', 'list_voices'],
673
+ enum: ['health', 'version', 'logs', 'list_pictures', 'get_picture', 'list_voices', 'session', 'webhook_events', 'health_check'],
584
674
  description: 'System action'
585
675
  },
586
676
  folder_name: { type: 'string', description: 'Folder name - for get_picture' },
587
677
  file_name: { type: 'string', description: 'File name - for get_picture' },
588
- stream: { type: 'boolean', description: 'Stream logs' }
678
+ stream: { type: 'boolean', description: 'Stream logs' },
679
+ flow_id_or_name: { type: 'string', description: 'Flow ID or name - for webhook_events' },
680
+ user_id: { type: 'string', description: 'User ID filter - for webhook_events' }
589
681
  },
590
682
  required: ['action']
591
683
  },
@@ -595,6 +687,593 @@ Examples:
595
687
  idempotentHint: true,
596
688
  openWorldHint: false
597
689
  }
690
+ },
691
+ {
692
+ name: 'flow_version',
693
+ description: `Manage flow versions and flow lifecycle events.
694
+
695
+ Actions:
696
+ - list: List versions of a flow
697
+ - create: Create a new flow version
698
+ - get: Get a specific flow version
699
+ - delete: Delete a flow version
700
+ - activate: Activate a flow version
701
+ - get_events: Get lifecycle events for a flow
702
+ - create_event: Create a lifecycle event for a flow
703
+
704
+ Examples:
705
+ - List: { "action": "list", "flow_id": "uuid" }
706
+ - Activate: { "action": "activate", "flow_id": "uuid", "version_id": "v1" }
707
+ - Create event: { "action": "create_event", "flow_id": "uuid", "type": "flow_settled" }`,
708
+ inputSchema: {
709
+ type: 'object',
710
+ properties: {
711
+ action: {
712
+ type: 'string',
713
+ enum: ['list', 'create', 'get', 'delete', 'activate', 'get_events', 'create_event'],
714
+ description: 'Flow version action'
715
+ },
716
+ flow_id: { type: 'string', description: 'Flow ID (UUID)' },
717
+ version_id: { type: 'string', description: 'Version ID - for get, delete, activate' },
718
+ body: { type: 'object', description: 'Version body - for create' },
719
+ save_draft: { type: 'boolean', description: 'Save draft on activate' },
720
+ limit: { type: 'number', description: 'Limit - for list' },
721
+ offset: { type: 'number', description: 'Offset - for list' },
722
+ deployment_provider_id: { type: 'string', description: 'Deployment provider ID - for list' },
723
+ since: { type: 'number', description: 'Since timestamp - for get_events' },
724
+ type: { type: 'string', description: 'Event type - for create_event' },
725
+ summary: { type: 'string', description: 'Event summary - for create_event' }
726
+ },
727
+ required: ['action']
728
+ },
729
+ annotations: {
730
+ readOnlyHint: false,
731
+ destructiveHint: true,
732
+ idempotentHint: false,
733
+ openWorldHint: true
734
+ }
735
+ },
736
+ {
737
+ name: 'file_v2',
738
+ description: `Manage user-scoped files via the v2 files API.
739
+
740
+ Actions:
741
+ - list: List all v2 files
742
+ - upload: Upload a file
743
+ - get: Get file metadata or content
744
+ - rename: Rename a file
745
+ - delete: Delete a file
746
+ - delete_all: Delete all files
747
+ - batch_download: Download multiple files
748
+ - batch_delete: Delete multiple files
749
+
750
+ Examples:
751
+ - List: { "action": "list" }
752
+ - Upload: { "action": "upload", "file_content": "base64...", "file_name": "doc.pdf" }
753
+ - Get: { "action": "get", "file_id": "id", "return_content": true }`,
754
+ inputSchema: {
755
+ type: 'object',
756
+ properties: {
757
+ action: {
758
+ type: 'string',
759
+ enum: ['list', 'upload', 'get', 'rename', 'delete', 'delete_all', 'batch_download', 'batch_delete'],
760
+ description: 'File V2 action'
761
+ },
762
+ file_id: { type: 'string', description: 'File ID - for get, rename, delete' },
763
+ file_ids: { type: 'array', items: { type: 'string' }, description: 'File IDs - for batch_download, batch_delete' },
764
+ file_content: { type: 'string', description: 'Base64 file content - for upload' },
765
+ file_name: { type: 'string', description: 'File name - for upload' },
766
+ name: { type: 'string', description: 'New name - for rename' },
767
+ append: { type: 'boolean', description: 'Append to existing file - for upload' },
768
+ ephemeral: { type: 'boolean', description: 'Ephemeral file - for upload' },
769
+ return_content: { type: 'boolean', description: 'Return file content - for get' }
770
+ },
771
+ required: ['action']
772
+ },
773
+ annotations: {
774
+ readOnlyHint: false,
775
+ destructiveHint: true,
776
+ idempotentHint: false,
777
+ openWorldHint: true
778
+ }
779
+ },
780
+ {
781
+ name: 'model',
782
+ description: `Manage LLM models and providers.
783
+
784
+ Actions:
785
+ - list: List available models
786
+ - providers: List all model providers
787
+ - enabled_providers: List enabled providers
788
+ - enabled_models: List enabled models
789
+ - set_enabled: Enable/disable models
790
+ - get_default: Get the default model for a type
791
+ - set_default: Set the default model for a type
792
+ - delete_default: Remove the default model for a type
793
+ - provider_mapping: Get provider-to-variable mapping
794
+ - validate_provider: Validate provider credentials
795
+ - options_language: Get language model options
796
+ - options_embedding: Get embedding model options
797
+
798
+ Examples:
799
+ - List: { "action": "list", "provider": "openai" }
800
+ - Set default: { "action": "set_default", "provider": "openai", "model_name": "gpt-4o", "model_type": "language" }
801
+ - Validate: { "action": "validate_provider", "provider": "openai", "variables": {} }`,
802
+ inputSchema: {
803
+ type: 'object',
804
+ properties: {
805
+ action: {
806
+ type: 'string',
807
+ enum: ['list', 'providers', 'enabled_providers', 'enabled_models', 'set_enabled', 'get_default', 'set_default', 'delete_default', 'provider_mapping', 'validate_provider', 'options_language', 'options_embedding'],
808
+ description: 'Model action'
809
+ },
810
+ provider: { type: 'string', description: 'Provider name - for list, set_default, validate_provider' },
811
+ providers: { type: 'array', items: { type: 'string' }, description: 'Provider filter - for enabled_providers' },
812
+ model_name: { type: 'string', description: 'Model name - for list, set_default' },
813
+ model_names: { type: 'array', items: { type: 'string' }, description: 'Model filter - for enabled_models' },
814
+ model_type: { type: 'string', description: 'Model type - for get_default, set_default, delete_default' },
815
+ models: { type: 'array', description: 'Models to enable/disable - for set_enabled' },
816
+ variables: { type: 'object', description: 'Provider credentials - for validate_provider' },
817
+ include_unsupported: { type: 'boolean', description: 'Include unsupported - for list' },
818
+ include_deprecated: { type: 'boolean', description: 'Include deprecated - for list' },
819
+ tool_calling: { type: 'boolean', description: 'Filter tool-calling models - for list' },
820
+ reasoning: { type: 'boolean', description: 'Filter reasoning models - for list' },
821
+ search: { type: 'string', description: 'Search query - for list' }
822
+ },
823
+ required: ['action']
824
+ },
825
+ annotations: {
826
+ readOnlyHint: false,
827
+ destructiveHint: false,
828
+ idempotentHint: false,
829
+ openWorldHint: true
830
+ }
831
+ },
832
+ {
833
+ name: 'agentic',
834
+ description: `Use the agentic assistant to configure and run flows.
835
+
836
+ Actions:
837
+ - assist: Get agentic assistance for a flow component
838
+ - check_config: Check whether agentic features are configured
839
+ - execute: Execute an agentic flow by name
840
+ - get_file: Read a file from the per-user agentic sandbox (Langflow 1.10.0)
841
+ - reset_session: Reset the agentic session/sandbox state (Langflow 1.10.0)
842
+
843
+ Examples:
844
+ - Assist: { "action": "assist", "flow_id": "uuid", "input_value": "help me" }
845
+ - Check config: { "action": "check_config" }
846
+ - Execute: { "action": "execute", "flow_name": "my-flow", "flow_id": "uuid" }
847
+ - Get file: { "action": "get_file", "path": "outputs/result.txt" }
848
+ - Reset session: { "action": "reset_session", "session_id": "sess-1" }`,
849
+ inputSchema: {
850
+ type: 'object',
851
+ properties: {
852
+ action: {
853
+ type: 'string',
854
+ enum: ['assist', 'check_config', 'execute', 'get_file', 'reset_session'],
855
+ description: 'Agentic action'
856
+ },
857
+ flow_id: { type: 'string', description: 'Flow ID - for assist, execute' },
858
+ flow_name: { type: 'string', description: 'Flow name - for execute' },
859
+ input_value: { type: 'string', description: 'Input value' },
860
+ session_id: { type: 'string', description: 'Session ID - for assist, reset_session' },
861
+ component_id: { type: 'string', description: 'Component ID' },
862
+ field_name: { type: 'string', description: 'Field name' },
863
+ model_name: { type: 'string', description: 'Model name' },
864
+ provider: { type: 'string', description: 'Provider' },
865
+ max_retries: { type: 'number', description: 'Max retries' },
866
+ path: { type: 'string', description: 'Relative sandbox file path - for get_file' },
867
+ download: { type: 'boolean', description: 'Return file as base64 attachment - for get_file' }
868
+ },
869
+ required: ['action']
870
+ },
871
+ annotations: {
872
+ readOnlyHint: false,
873
+ destructiveHint: true,
874
+ idempotentHint: false,
875
+ openWorldHint: true
876
+ }
877
+ },
878
+ {
879
+ name: 'workflow',
880
+ description: `Run and manage v2 workflows.
881
+
882
+ Actions:
883
+ - run: Run a workflow
884
+ - get_result: Get a workflow result (optionally by job_id)
885
+ - stop: Stop a running workflow
886
+ - pending: List pending human-in-the-loop workflows (Langflow 1.11.0)
887
+ - events: Re-attach to a workflow job event stream by job_id (Langflow 1.11.0)
888
+ - resume: Resume a paused HITL workflow with a decision payload (Langflow 1.11.0)
889
+ - run_public: Run a public workflow (Langflow 1.11.0)
890
+
891
+ Examples:
892
+ - Run: { "action": "run", "flow_id": "uuid" }
893
+ - Run with globals: { "action": "run", "flow_id": "uuid", "globals": { "API_KEY": "x" } }
894
+ - Get result: { "action": "get_result", "job_id": "job-1" }
895
+ - Stop: { "action": "stop", "job_id": "job-1" }
896
+ - Pending: { "action": "pending" } (Langflow 1.11.0)
897
+ - Events: { "action": "events", "job_id": "job-1" } (Langflow 1.11.0)
898
+ - Resume: { "action": "resume", "job_id": "job-1", "decision": { "approved": true } } (Langflow 1.11.0)
899
+ - Run public: { "action": "run_public", "flow_id": "uuid" } (Langflow 1.11.0)`,
900
+ inputSchema: {
901
+ type: 'object',
902
+ properties: {
903
+ action: {
904
+ type: 'string',
905
+ enum: ['run', 'get_result', 'stop', 'pending', 'events', 'resume', 'run_public'],
906
+ description: 'Workflow action'
907
+ },
908
+ flow_id: { type: 'string', description: 'Flow ID - for run, run_public; filter for pending' },
909
+ inputs: { type: 'object', description: 'Workflow inputs - for run, run_public' },
910
+ globals: { type: 'object', description: 'Request-level global variables (Langflow 1.10.0) - for run, run_public' },
911
+ stream: { type: 'boolean', description: 'Stream results - for run, run_public' },
912
+ background: { type: 'boolean', description: 'Run in background - for run' },
913
+ decision: { type: 'object', description: 'HITL decision payload - for resume (Langflow 1.11.0)' },
914
+ job_id: { type: 'string', description: 'Job ID - for get_result, stop, events, resume' }
915
+ },
916
+ required: ['action']
917
+ },
918
+ annotations: {
919
+ readOnlyHint: false,
920
+ destructiveHint: false,
921
+ idempotentHint: false,
922
+ openWorldHint: true
923
+ }
924
+ },
925
+ {
926
+ name: 'a2a',
927
+ description: `A2A (Agent-to-Agent) protocol (Langflow 1.11.0). Requires server-side A2A enablement (LANGFLOW_A2A_ENABLED).
928
+
929
+ Actions:
930
+ - list_agents: List available A2A agents
931
+ - agent_card: Get a flow's A2A agent card (.well-known/agent-card.json)
932
+ - jsonrpc: Invoke a flow via the A2A JSON-RPC endpoint (write; passthrough envelope)
933
+
934
+ Examples:
935
+ - List agents: { "action": "list_agents" }
936
+ - Agent card: { "action": "agent_card", "flow_id": "uuid" }
937
+ - JSON-RPC: { "action": "jsonrpc", "flow_id": "uuid", "method": "message/send", "params": {} }`,
938
+ inputSchema: {
939
+ type: 'object',
940
+ properties: {
941
+ action: {
942
+ type: 'string',
943
+ enum: ['list_agents', 'agent_card', 'jsonrpc'],
944
+ description: 'A2A action'
945
+ },
946
+ flow_id: { type: 'string', description: 'Flow ID - for agent_card, jsonrpc' },
947
+ jsonrpc: { type: 'string', description: 'JSON-RPC version (e.g. "2.0") - for jsonrpc' },
948
+ method: { type: 'string', description: 'JSON-RPC method name - for jsonrpc' },
949
+ params: { type: ['object', 'array'], description: 'JSON-RPC params (object or positional array) - for jsonrpc' },
950
+ id: { type: ['string', 'number'], description: 'JSON-RPC request ID - for jsonrpc' }
951
+ },
952
+ required: ['action']
953
+ },
954
+ annotations: {
955
+ readOnlyHint: false,
956
+ destructiveHint: false,
957
+ idempotentHint: false,
958
+ openWorldHint: true
959
+ }
960
+ },
961
+ {
962
+ name: 'mcp_server',
963
+ description: `Manage MCP servers registered with Langflow.
964
+
965
+ Actions:
966
+ - list: List MCP servers
967
+ - get: Get an MCP server by name
968
+ - create: Create an MCP server
969
+ - update: Update an MCP server
970
+ - delete: Delete an MCP server
971
+
972
+ Examples:
973
+ - List: { "action": "list" }
974
+ - Create: { "action": "create", "server_name": "my-server", "config": { "command": "npx" } }
975
+ - Delete: { "action": "delete", "server_name": "my-server" }`,
976
+ inputSchema: {
977
+ type: 'object',
978
+ properties: {
979
+ action: {
980
+ type: 'string',
981
+ enum: ['list', 'get', 'create', 'update', 'delete'],
982
+ description: 'MCP server action'
983
+ },
984
+ server_name: { type: 'string', description: 'Server name - for get, create, update, delete' },
985
+ config: { type: 'object', description: 'Server config {command,args,env,url,headers} - for create, update' },
986
+ action_count: { type: 'boolean', description: 'Include action counts - for list' }
987
+ },
988
+ required: ['action']
989
+ },
990
+ annotations: {
991
+ readOnlyHint: false,
992
+ destructiveHint: true,
993
+ idempotentHint: false,
994
+ openWorldHint: true
995
+ }
996
+ },
997
+ {
998
+ name: 'mcp_project',
999
+ description: `Manage MCP project configuration and installation.
1000
+
1001
+ Actions:
1002
+ - get_config: Get MCP config for a project
1003
+ - update_config: Update MCP config for a project
1004
+ - get_installed: Get installed MCP clients for a project
1005
+ - install: Install MCP for a project into a client
1006
+ - get_composer_url: Get the MCP composer URL for a project
1007
+
1008
+ Examples:
1009
+ - Get config: { "action": "get_config", "project_id": "uuid" }
1010
+ - Install: { "action": "install", "project_id": "uuid", "client": "cursor" }`,
1011
+ inputSchema: {
1012
+ type: 'object',
1013
+ properties: {
1014
+ action: {
1015
+ type: 'string',
1016
+ enum: ['get_config', 'update_config', 'get_installed', 'install', 'get_composer_url'],
1017
+ description: 'MCP project action'
1018
+ },
1019
+ project_id: { type: 'string', description: 'Project ID (UUID)' },
1020
+ mcp_enabled: { type: 'boolean', description: 'Filter by enabled - for get_config' },
1021
+ settings: { type: 'array', description: 'Settings array - for update_config' },
1022
+ auth_settings: { type: 'object', description: 'Auth settings - for update_config' },
1023
+ client: { type: 'string', description: 'Client name - for install' },
1024
+ transport: { type: 'string', description: 'Transport - for install' }
1025
+ },
1026
+ required: ['action']
1027
+ },
1028
+ annotations: {
1029
+ readOnlyHint: false,
1030
+ destructiveHint: false,
1031
+ idempotentHint: false,
1032
+ openWorldHint: true
1033
+ }
1034
+ },
1035
+ {
1036
+ name: 'trace',
1037
+ description: `Inspect and manage execution traces.
1038
+
1039
+ Actions:
1040
+ - list: List traces with filters
1041
+ - get: Get a specific trace
1042
+ - delete: Delete a specific trace
1043
+ - delete_by_flow: Delete all traces for a flow
1044
+
1045
+ Examples:
1046
+ - List: { "action": "list", "flow_id": "uuid" }
1047
+ - Get: { "action": "get", "trace_id": "t1" }
1048
+ - Delete by flow: { "action": "delete_by_flow", "flow_id": "uuid" }`,
1049
+ inputSchema: {
1050
+ type: 'object',
1051
+ properties: {
1052
+ action: {
1053
+ type: 'string',
1054
+ enum: ['list', 'get', 'delete', 'delete_by_flow'],
1055
+ description: 'Trace action'
1056
+ },
1057
+ trace_id: { type: 'string', description: 'Trace ID - for get, delete' },
1058
+ flow_id: { type: 'string', description: 'Flow ID - for list, delete_by_flow' },
1059
+ session_id: { type: 'string', description: 'Session filter - for list' },
1060
+ status: { type: 'string', description: 'Status filter - for list' },
1061
+ query: { type: 'string', description: 'Query filter - for list' },
1062
+ start_time: { type: 'string', description: 'Start time filter - for list' },
1063
+ end_time: { type: 'string', description: 'End time filter - for list' },
1064
+ page: { type: 'number', description: 'Page number - for list' },
1065
+ size: { type: 'number', description: 'Page size - for list' }
1066
+ },
1067
+ required: ['action']
1068
+ },
1069
+ annotations: {
1070
+ readOnlyHint: false,
1071
+ destructiveHint: true,
1072
+ idempotentHint: false,
1073
+ openWorldHint: true
1074
+ }
1075
+ },
1076
+ {
1077
+ name: 'response',
1078
+ description: `Create OpenAI-compatible responses via the /responses endpoint.
1079
+
1080
+ Actions:
1081
+ - create: Create a response
1082
+
1083
+ Examples:
1084
+ - Create: { "action": "create", "model": "gpt-4o", "input": "Hello" }`,
1085
+ inputSchema: {
1086
+ type: 'object',
1087
+ properties: {
1088
+ action: {
1089
+ type: 'string',
1090
+ enum: ['create'],
1091
+ description: 'Response action'
1092
+ },
1093
+ model: { type: 'string', description: 'Model name' },
1094
+ input: { type: 'string', description: 'Input text' },
1095
+ stream: { type: 'boolean', description: 'Stream the response' },
1096
+ background: { type: 'boolean', description: 'Run in background' },
1097
+ previous_response_id: { type: 'string', description: 'Previous response ID for continuation' },
1098
+ include: { type: 'array', items: { type: 'string' }, description: 'Fields to include' },
1099
+ tools: { type: 'array', description: 'Tools available to the response' }
1100
+ },
1101
+ required: ['action']
1102
+ },
1103
+ annotations: {
1104
+ readOnlyHint: false,
1105
+ destructiveHint: false,
1106
+ idempotentHint: false,
1107
+ openWorldHint: true
1108
+ }
1109
+ },
1110
+ {
1111
+ name: 'authz',
1112
+ description: `Manage RBAC authorization (Langflow 1.10.0): roles, role assignments, teams, shares, audit, and effective permissions. Most write actions require a superuser.
1113
+
1114
+ Actions:
1115
+ - list_roles: List roles
1116
+ - get_role: Get a role by ID
1117
+ - create_role: Create a role (superuser)
1118
+ - update_role: Update a role (superuser)
1119
+ - delete_role: Delete a role (superuser)
1120
+ - list_role_assignments: List role assignments
1121
+ - create_role_assignment: Assign a role to a user (superuser)
1122
+ - delete_role_assignment: Remove a role assignment (superuser)
1123
+ - list_teams: List teams
1124
+ - get_team: Get a team by ID
1125
+ - create_team: Create a team (superuser)
1126
+ - update_team: Update a team (superuser)
1127
+ - delete_team: Delete a team (superuser)
1128
+ - list_team_members: List members of a team
1129
+ - add_team_member: Add a member to a team (superuser)
1130
+ - remove_team_member: Remove a member from a team (superuser)
1131
+ - list_shares: List resource shares
1132
+ - get_share: Get a share by ID
1133
+ - create_share: Create a resource share
1134
+ - update_share: Update a share's permission level
1135
+ - delete_share: Delete a share
1136
+ - audit: Query the authorization audit log (superuser)
1137
+ - my_permissions: Get the caller's effective permissions for resources
1138
+
1139
+ Examples:
1140
+ - List roles: { "action": "list_roles" }
1141
+ - Create role: { "action": "create_role", "name": "editor", "permissions": ["flow:read"] }
1142
+ - Assign role: { "action": "create_role_assignment", "user_id": "uuid", "role_id": "uuid" }
1143
+ - My permissions: { "action": "my_permissions", "resource_type": "flow", "resource_ids": ["uuid"] }`,
1144
+ inputSchema: {
1145
+ type: 'object',
1146
+ properties: {
1147
+ action: {
1148
+ type: 'string',
1149
+ enum: ['list_roles', 'get_role', 'create_role', 'update_role', 'delete_role', 'list_role_assignments', 'create_role_assignment', 'delete_role_assignment', 'list_teams', 'get_team', 'create_team', 'update_team', 'delete_team', 'list_team_members', 'add_team_member', 'remove_team_member', 'list_shares', 'get_share', 'create_share', 'update_share', 'delete_share', 'audit', 'my_permissions'],
1150
+ description: 'Authz action'
1151
+ },
1152
+ role_id: { type: 'string', description: 'Role ID - for get_role, update_role, delete_role, create_role_assignment; filter for list_role_assignments' },
1153
+ assignment_id: { type: 'string', description: 'Role assignment ID - for delete_role_assignment' },
1154
+ team_id: { type: 'string', description: 'Team ID - for team actions' },
1155
+ share_id: { type: 'string', description: 'Share ID - for get_share, update_share, delete_share' },
1156
+ user_id: { type: 'string', description: 'User ID - for role assignments, team members' },
1157
+ name: { type: 'string', description: 'Role name - for create_role, update_role; filter for list_roles' },
1158
+ description: { type: 'string', description: 'Description - for create/update role' },
1159
+ permissions: { type: 'array', items: { type: 'string' }, description: 'Permission slugs - for create/update role' },
1160
+ parent_role_id: { type: 'string', description: 'Parent role ID - for create/update role' },
1161
+ domain_type: { type: 'string', enum: ['global', 'org', 'workspace', 'project'], description: 'Assignment domain type - for create_role_assignment' },
1162
+ domain_id: { type: 'string', description: 'Assignment domain ID - for create_role_assignment' },
1163
+ team_name: { type: 'string', description: 'Team display name - for create/update team' },
1164
+ adom_name: { type: 'string', description: 'Team unique slug - for create/update team' },
1165
+ is_active: { type: 'boolean', description: 'Active flag - for create/update team; filter for list_teams' },
1166
+ source: { type: 'string', enum: ['manual', 'sso'], description: 'Member source - for add_team_member' },
1167
+ resource_type: { type: 'string', description: 'Resource type - for shares and my_permissions' },
1168
+ resource_id: { type: 'string', description: 'Resource ID - for create_share; filter for list_shares' },
1169
+ resource_ids: { type: 'array', items: { type: 'string' }, description: 'Resource IDs - for my_permissions' },
1170
+ scope: { type: 'string', enum: ['private', 'team', 'user', 'public'], description: 'Share scope - for create_share; filter for list_shares' },
1171
+ target_id: { type: 'string', description: 'Share target (team/user) ID - for create_share' },
1172
+ permission_level: { type: 'string', enum: ['read', 'write', 'execute', 'admin'], description: 'Permission level - for create_share, update_share' },
1173
+ actions: { type: 'array', items: { type: 'string' }, description: 'Actions to check - for my_permissions' },
1174
+ domain: { type: 'string', description: 'Permission domain - for my_permissions' },
1175
+ audit_action: { type: 'string', description: 'Audited action name filter - for audit' },
1176
+ result: { type: 'string', description: 'Audit result filter (allow/deny) - for audit' },
1177
+ since: { type: 'string', description: 'Audit lower time bound (ISO) - for audit' },
1178
+ until: { type: 'string', description: 'Audit upper time bound (ISO) - for audit' },
1179
+ is_system: { type: 'boolean', description: 'Filter system roles - for list_roles' },
1180
+ search: { type: 'string', description: 'Search filter - for list_teams' },
1181
+ limit: { type: 'number', description: 'Result limit - for list actions' },
1182
+ offset: { type: 'number', description: 'Result offset - for list actions' },
1183
+ page: { type: 'number', description: 'Page number - for audit' },
1184
+ size: { type: 'number', description: 'Page size - for audit' }
1185
+ },
1186
+ required: ['action']
1187
+ },
1188
+ annotations: {
1189
+ readOnlyHint: false,
1190
+ destructiveHint: true,
1191
+ idempotentHint: false,
1192
+ openWorldHint: true
1193
+ }
1194
+ },
1195
+ {
1196
+ name: 'memory',
1197
+ description: `Manage MemoryBases (Langflow 1.10.0). Note: this is an experimental Langflow API hidden from its OpenAPI schema; availability may vary by deployment.
1198
+
1199
+ Actions:
1200
+ - create: Create a memory base bound to a flow
1201
+ - list: List memory bases (optionally filtered by flow)
1202
+ - get: Get a memory base by ID
1203
+ - list_sessions: List sessions tracked by a memory base
1204
+ - list_messages: List messages in a memory base (optionally by session)
1205
+ - update: Update a memory base (name, threshold, auto_capture)
1206
+ - delete: Delete a memory base
1207
+ - flush: Flush a session into the memory base
1208
+ - mismatch: Check whether the memory base has an embedding mismatch
1209
+ - regenerate: Regenerate the memory base
1210
+
1211
+ Examples:
1212
+ - Create: { "action": "create", "name": "mb", "flow_id": "uuid" }
1213
+ - List: { "action": "list", "flow_id": "uuid" }
1214
+ - Flush: { "action": "flush", "memory_base_id": "uuid", "session_id": "sess-1" }`,
1215
+ inputSchema: {
1216
+ type: 'object',
1217
+ properties: {
1218
+ action: {
1219
+ type: 'string',
1220
+ enum: ['create', 'list', 'get', 'list_sessions', 'list_messages', 'update', 'delete', 'flush', 'mismatch', 'regenerate'],
1221
+ description: 'Memory base action'
1222
+ },
1223
+ memory_base_id: { type: 'string', description: 'Memory base ID - for get, list_sessions, list_messages, update, delete, flush, mismatch, regenerate' },
1224
+ name: { type: 'string', description: 'Memory base name - for create, update' },
1225
+ flow_id: { type: 'string', description: 'Flow ID - for create; filter for list' },
1226
+ threshold: { type: 'number', description: 'Capture threshold - for create, update' },
1227
+ auto_capture: { type: 'boolean', description: 'Auto-capture flag - for create, update' },
1228
+ embedding_model: { type: 'string', description: 'Embedding model - for create' },
1229
+ preprocessing: { type: 'boolean', description: 'Enable preprocessing - for create' },
1230
+ preproc_model: { type: 'string', description: 'Preprocessing model (required when preprocessing enabled) - for create' },
1231
+ preproc_instructions: { type: 'string', description: 'Preprocessing instructions - for create' },
1232
+ preproc_kill_phrase: { type: 'string', description: 'Preprocessing kill phrase - for create' },
1233
+ session_id: { type: 'string', description: 'Session ID - for flush; filter for list_messages' },
1234
+ page: { type: 'number', description: 'Page number - for list, list_sessions, list_messages' },
1235
+ size: { type: 'number', description: 'Page size - for list, list_sessions, list_messages' }
1236
+ },
1237
+ required: ['action']
1238
+ },
1239
+ annotations: {
1240
+ readOnlyHint: false,
1241
+ destructiveHint: true,
1242
+ idempotentHint: false,
1243
+ openWorldHint: true
1244
+ }
1245
+ },
1246
+ {
1247
+ name: 'extension',
1248
+ description: `Manage Langflow extensions (Langflow 1.10.0).
1249
+
1250
+ Actions:
1251
+ - reload: Reload an extension bundle (requires LANGFLOW_ENABLE_EXTENSION_RELOAD on the server)
1252
+ - events: Poll extension events for the current user
1253
+
1254
+ Examples:
1255
+ - Reload: { "action": "reload", "extension_id": "ext", "bundle_name": "bundle" }
1256
+ - Events: { "action": "events", "since": 0 }`,
1257
+ inputSchema: {
1258
+ type: 'object',
1259
+ properties: {
1260
+ action: {
1261
+ type: 'string',
1262
+ enum: ['reload', 'events'],
1263
+ description: 'Extension action'
1264
+ },
1265
+ extension_id: { type: 'string', description: 'Extension ID - for reload' },
1266
+ bundle_name: { type: 'string', description: 'Bundle name - for reload' },
1267
+ since: { type: 'number', description: 'UTC epoch cursor; return events after this - for events' }
1268
+ },
1269
+ required: ['action']
1270
+ },
1271
+ annotations: {
1272
+ readOnlyHint: false,
1273
+ destructiveHint: false,
1274
+ idempotentHint: false,
1275
+ openWorldHint: true
1276
+ }
598
1277
  }
599
1278
  ];
600
1279
  //# sourceMappingURL=tools-consolidated.js.map