Commit 194407a
[One Workflow] Register server-side agent builder tools for workflow authoring (elastic#255180)
Close elastic/security-team#15740
## Summary
Registers workflow-related tools and a skill with the Agent Builder,
enabling AI-powered workflow authoring from within the Kibana AI
Assistant.
### Tools added (namespace `platform.workflows.*`)
| Tool | Screenshot |
|---|---|
|
**get_step_definitions**<br/>`platform.workflows.get_step_definitions`<br/>Discover
available workflow step types, their input/config params, categories,
and usage examples. Supports filtering by type, keyword search, or
category. Optionally returns full JSON Schema. | <img width="1600"
height="1400" alt="02-get_step_definitions"
src="https://github.com/user-attachments/assets/f8ecb7a5-2767-4d57-91d0-84d3bf1345be"
/> |
|
**get_trigger_definitions**<br/>`platform.workflows.get_trigger_definitions`<br/>Look
up available trigger types (manual, scheduled, alert) with schemas and
YAML examples. | <img width="1600" height="1400"
alt="03-get_trigger_definitions"
src="https://github.com/user-attachments/assets/8358fa2a-e281-4485-a044-e11439150dff"
/> |
| **get_examples**<br/>`platform.workflows.get_examples`<br/>Search and
retrieve example workflow YAML files from the bundled library. Supports
category and keyword filtering. | <img width="1600" height="1400"
alt="04-get_examples"
src="https://github.com/user-attachments/assets/2d4ba4d4-7ce8-4f68-a8f9-bb36f9701718"
/> |
| **get_connectors**<br/>`platform.workflows.get_connectors`<br/>List
connector instances configured in the user's environment (Slack, Jira,
etc.) to get connector IDs for workflow steps. | <img width="1600"
height="1400" alt="05-get_connectors"
src="https://github.com/user-attachments/assets/26160604-7f57-47bc-92ba-936c4e6dfe8e"
/> |
|
**validate_workflow**<br/>`platform.workflows.validate_workflow`<br/>Validate
a workflow YAML string against all rules (syntax, schema, step name
uniqueness, Liquid templates). | <img width="801" height="401"
alt="Screenshot 2026-03-05 at 20 50 46"
src="https://github.com/user-attachments/assets/d25c63da-541c-4e57-87a6-b33d898e9437"
/> <img width="813" height="1021" alt="Screenshot 2026-03-05 at 20 50
37"
src="https://github.com/user-attachments/assets/e2a780ec-b421-4189-b2fd-cefe52b136cc"
/> |
| **list_workflows**<br/>`platform.workflows.list_workflows`<br/>List
workflows in the user's environment with search, tag, and status
filtering. | <img width="1600" height="1400" alt="07-list_workflows"
src="https://github.com/user-attachments/assets/0b3ae20e-32a6-4031-9f9f-bdabff54a464"
/> |
| **get_workflow**<br/>`platform.workflows.get_workflow`<br/>Retrieve a
specific workflow by ID, including its full YAML definition. | <img
width="1600" height="1400" alt="08-get_workflow"
src="https://github.com/user-attachments/assets/11709457-46e5-48a5-a2fb-2d443533e377"
/> |
### Skill added
- **`workflow-authoring`** — bundles all seven tools above with a
detailed system prompt covering YAML structure, step types, Liquid
templating, connector usage, and self-validation workflow.
### Other changes
- Added `platform.workflows` tool namespace to the Agent Builder
allow-list
- Exported helper utilities from `@kbn/workflows` for building
agent-friendly step/trigger schemas
- Added unit tests for tools
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>1 parent 225a87d commit 194407a
45 files changed
Lines changed: 3259 additions & 156 deletions
File tree
- src/platform
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
18 | 35 | | |
19 | 36 | | |
20 | 37 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
Lines changed: 65 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
Lines changed: 89 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 0 additions & 73 deletions
This file was deleted.
0 commit comments