Files
nodejs_example/actions/hello.yaml

44 lines
1.0 KiB
YAML

# Hello Action
# Simple Node.js action that returns "Hello, Node.js"
ref: nodejs_example.hello
label: "Hello Node.js"
description: "A simple Node.js action that returns a greeting message"
enabled: true
# Runner type determines how the action is executed
runner_type: nodejs
# Runtime version constraint (semver range) - selects compatible Node.js version
runtime_version: ">=18"
# Entry point is the JavaScript file to execute
entry_point: hello.js
# Parameter delivery: stdin for secure parameter passing
parameter_delivery: stdin
parameter_format: json
# Output format: json (structured data parsing enabled)
output_format: json
# Action parameters schema (flat format with inline required/secret)
parameters:
name:
type: string
description: "Optional name to include in greeting"
default: "Node.js"
# Output schema (flat format)
output_schema:
message:
type: string
description: "The greeting message"
required: true
# Tags for categorization
tags:
- nodejs
- example
- greeting