Files
attune/packs/examples/actions/list_example.yaml
2026-02-23 20:45:10 -06:00

52 lines
1.2 KiB
YAML

# List Example Action
# Demonstrates JSON Lines output format for streaming results
ref: examples.list_example
label: "List Example"
description: "Example action that outputs multiple JSON objects as JSON Lines"
enabled: true
# Runner type determines how the action is executed
runner_type: shell
# Entry point is the shell script to execute
entry_point: list_example.sh
# Parameter delivery: stdin for secure parameter passing
parameter_delivery: stdin
parameter_format: json
# Output format: jsonl (each line is a JSON object, collected into array)
output_format: jsonl
# Action parameters schema (StackStorm-style with inline required/secret)
parameters:
count:
type: integer
description: "Number of items to generate"
default: 5
minimum: 1
maximum: 100
# Output schema: array of objects (required for jsonl format)
# Each line in stdout will be parsed as JSON and collected into this array
output_schema:
id:
type: integer
description: "Item identifier"
required: true
value:
type: string
description: "Item value"
required: true
timestamp:
type: string
description: "ISO 8601 timestamp"
# Tags for categorization
tags:
- utility
- example
- jsonl
- streaming