/tray-workflows:tray-connectorsfrom tray-workflows
Provides core Tray connector names, versions, and trigger selection rules for building workflow steps. Covers noop, scheduled, callable-trigger, type-wrapper format, and common JSONPath shapes.
Ships in tray-workflows. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Consult this when building workflow steps with standard connectors.
For connectors not listed here, use /tray-workflows:research-connector to discover them via MCP tools.
Always verify versions with list_connectors — versions may vary by workspace.
| Connector | Name | Version | Use Case |
|---|---|---|---|
| Manual Trigger | noop | 1.1 | Start manually |
| Scheduled Trigger | scheduled | 3.5 | Time-based triggers |
| Callable Trigger | callable-trigger | 2.0 | Called by other workflows |
| Boolean Condition | boolean-condition | 2.3 | Two-way branch |
| Loop | loop | 1.3 | Iterate arrays/objects |
| Break Loop | break-loop | 1.1 | Exit/skip iterations |
| Delay | delay | 1.0 | Pause execution |
| HTTP Client | http-client | 5.6 | REST/HTTP APIs |
| Script (JS) | script | 3.3 / 3.4 | Custom JavaScript |
| Python | python-script | 2.0 | Python transformations |
| Call Workflow | call-workflow | 2.0 | Invoke other workflows |
| Callable Response | callable-workflow-response | 1.0 | Return data to caller |
| Send Email | send-email | 4.1 | Email notifications |
| Terminate | terminate | 1.1 | Stop execution |
For detailed examples of each connector, see core-connectors.md.
Every workflow starts with exactly one trigger step, always named "trigger".
The user's wording maps to a specific trigger connector. Pick deliberately — webhook is the wrong default for form/submit/manual prompts, but it's the right answer for "Stripe sends events to us" / "incoming HTTP from system X".
| User says… | Use |
|---|---|
| "form", "submit a form", "form fields", "form submission", "fill in" | form-trigger |
| "manual", "press a button", "run on-demand", "trigger it myself", "kick it off" | noop (operation trigger) |
| "scheduled", "every day at", "weekly", "cron", "at 9am" | scheduled |
| "called by another workflow", "callable", "invoked from", "shared workflow" | callable-trigger |
| "agent tool", "the agent calls", "tool the agent uses" | agent-tool-trigger |
| "API endpoint", "expose an API", "request/response API" | api-operation-trigger |
| "Slack message arrives", "new Slack event" | slack-trigger |
| "external system POSTs to us", "incoming webhook from ", " sends an HTTP payload" | webhook |
form-trigger and webhook are not interchangeable — the rubric for form-shaped scenarios is explicit. A form trigger has typed, schema-driven fields the workflow can branch on; a webhook trigger's body is opaque JSON the workflow has to defensively unpack. Use form-trigger whenever the user mentions a form, even if the surrounding workflow looks "webhook-shaped" (POST-in, JSON-out).
Trigger output paths are always declared in the trigger operation's outputSchema.properties. When you research the trigger via list_connector_operations, look at outputSchema.properties — the keys at that level are the only valid first segment after the step name. Examples observed in current connectors: webhook → body, form-trigger → result, callable-trigger → data, agent-tool-trigger → tool_input / static_data. The build-time validator enforces these envelope keys; paths like $.steps.trigger.<not-an-envelope-key>.foo reject with "available keys: …". Do not invent paths or copy a shape from a different trigger type.
If list_connectors(connector_names: [...]) returns "found N/M" with form-trigger / callable-trigger / agent-tool-trigger missing, those are trigger-only connectors — the REST endpoint excludes them. Re-call with is_trigger: true to see them.
list_connectors)These are the built-in trigger connectors. Names are NOT guessable — e.g. "Manual" is noop, not manual; "Scheduled" is scheduled, not schedule:
| UI label | connector_name | Version | Typical operation | Notes |
|---|---|---|---|---|
| Manual | noop | 1.1 | trigger | No public_url; no auth; empty properties |
| Scheduled | scheduled | 3.5 | daily, every_n_minutes, etc. | Requires public_url. daily also requires hour, minute, tz, and all 7 day_of_week keys |
| Webhook | webhook | 2.3 | fire_and_forget (no response), webhook (validate-and-respond — runs sync validation then auto-200), webhook_with_response (await workflow and return its response body) | No public_url needed (uses trigger URL instead). For webhook_with_response, pair with a trigger-reply step. |
| Callable | callable-trigger | 2.0 | trigger (async), trigger_and_respond (sync, pair with callable-workflow-response) | No public_url. Output also exposes #calling_workflow / #calling_execution / #calling_execution_log_url siblings of data for caller diagnostics. |
| Form | form-trigger | (verify) | — | No public_url |
email-trigger | (verify) | — | Requires public_url | |
| Alert | alerting-trigger | 1.1 | — | Used by Tray Alerting to fire workflows on platform alerts. |
| API Operation | api-operation-trigger | 1.0 | fire_and_forget, publish_subscribe, request_response, validate | No public_url |
| Agent tool | agent-tool-trigger | 1.0 | — | No public_url; description of the containing workflow IS the tool description the agent sees |
| Agent (chat) | agent-trigger | (verify) | — | No public_url |
| Slack trigger | slack-trigger | (verify) | — | No public_url |
Source of truth: the operation's inputSchema.required. public_url is required when the trigger's operation schema declares it required — don't guess from the connector name.
Confirmed from schemas:
Requires public_url | Does NOT require public_url |
|---|---|
scheduled (all operations) | noop, callable-trigger |
email-trigger | webhook (URL auto-generated by Tray, schema has no public_url property) |
slack-trigger, form-trigger, api-operation-trigger | |
agent-trigger, agent-tool-trigger |
When public_url is required, set it as:
"public_url": {"type": "jsonpath", "value": "$.env.public_url"}
For unfamiliar triggers, call list_connector_operations with the operation_name — check whether public_url appears in inputSchema.required. The MCP server's per-operation schema validation (validateStepProperties) enforces this automatically; you don't need to track the list yourself.
CRITICAL: Field names come from inputSchema, not from guessing.
list_connector_operations to get the operation's inputSchemainputSchema.propertiesNever make up field names. If a field isn't in the schema, it doesn't exist.
All property values must be wrapped:
| Type | Format |
|---|---|
| String | {"type": "string", "value": "text"} |
| Integer | {"type": "integer", "value": 123} |
| Number | {"type": "number", "value": 3.14} |
| Boolean | {"type": "boolean", "value": true} |
| Array | {"type": "array", "value": [...]} |
| Object | {"type": "object", "value": {...}} |
| JsonPath | {"type": "jsonpath", "value": "$.steps.step-1.field"} |
A property value is one of three things:
{$.steps.x.y} segments inside string values at runtime"channel": {"type": "jsonpath", "value": "$.steps.script-1.result.channel_id"}
"text": {"type": "jsonpath", "value": "$.steps.script-1.result.message"}
$)The runtime resolves {$.steps.<name>.<path>} substrings inside any {type:"string", value:"..."} property. Use this for "static prefix + one or more dynamic values" — it skips the cost of an extra script step purely for concatenation.
"text": {"type": "string", "value": "Found {$.steps.salesforce-1.totalSize} opportunities for {$.steps.trigger.body.account_name}."}
"instructions": {"type": "string", "value": "Summarise the following customer note:\n\n{$.steps.slack-2.response.body}"}
Rules:
{$.steps.x.y}, NOT {{$.steps.x.y}}.$.steps., $.env., or $.config. — same root rules as a regular jsonpath wrapper.{type:"jsonpath", value:"$.steps.x.y"} — it preserves the source type (object/array/number) instead of stringifying."text": {"type": "string", "value": "Found {{salesforce-1.total}} records"} // double-brace handlebars
"text": {"type": "string", "value": "Found $.steps.salesforce-1.total records"} // raw $.steps with no braces
"value": {"type": "string", "value": "{{moment(trigger.datetime).toISOString()}}"} // expressions
"text": {"type": "string", "value": "{{#each records}}{{Name}}{{/each}}"} // handlebars iteration
These are treated as literal strings.
Brace interpolation handles "static + one or more values" cleanly. Reach for a script step when:
When a step needs a formatted string built from multiple sources by transformation or iteration, use a script step to compose it:
script step before the step that needs the composed valuevariables:
"variables": {"type": "array", "value": [
{"type": "object", "value": {
"name": {"type": "string", "value": "records"},
"value": {"type": "jsonpath", "value": "$.steps.salesforce-1.records"}
}},
{"type": "object", "value": {
"name": {"type": "string", "value": "total"},
"value": {"type": "jsonpath", "value": "$.steps.salesforce-1.total"}
}}
]}
"code": {"type": "string", "value": "exports.step = function(input) {\n let msg = `Found ${input.total} opportunities:\\n`;\n input.records.forEach(r => {\n msg += `• ${r.Name} (${r.StageName}) - $${r.Amount}\\n`;\n });\n return msg;\n}"}
"text": {"type": "jsonpath", "value": "$.steps.script-1.result"}
| What you need | JsonPath |
|---|---|
| Step output field | $.steps.step-name.<field-from-step-output> |
| Loop current value | $.steps.loop-1.value.<field> |
| Callable workflow response | $.steps.call-workflow-1.response.<field> |
| Environment variable | $.env.variable_name |
Build jsonpaths from the actual output schema of the referenced step. Different step types have different output shapes (e.g., script steps wrap return values in result, connector steps may expose fields directly). Always check the step's output structure rather than assuming a universal pattern.
Format: {connector-name}-{number} — use the connector name ONLY, never the operation name.
slack-1 (correct) — NOT slack-send-message-1salesforce-1 (correct) — NOT salesforce-find-records-1http-client-1 (correct) — NOT http-client-get-request-1Using the wrong step name causes the connector icon to be missing in the Tray UI.
Exception: the trigger step is always named "trigger".
Pass auth_id on each step entry when adding or updating:
add_workflow_steps(..., steps=[{..., auth_id: "<uuid from list_authentications>"}])
update_workflow_steps(..., steps=[{..., auth_id: "<uuid from list_authentications>"}])
Get the auth UUID from list_authentications (the id field). Steps without auth needs (script, loop, boolean-condition, send-email) should omit auth_id.
Helper connectors are no-auth Tray-built primitives for common transformations. The operation names are non-obvious — most prompts say "decode base64" / "lowercase" / "join", and the connector calls those base64_encoderdecoder / lower_case / concatenate. Look up the schema before guessing — list_connector_operations is the source of truth for every operation name and field shape.
text-helpers (note the plural) — string transformationsConnector name: text-helpers (plural — text-helper does NOT exist). Latest observed version: 3.0. No auth.
| User says… | Operation | Notes |
|---|---|---|
| "encode/decode base64" | base64_encoderdecoder | Single op covers both directions; set operation: {type:"string", value:"encode"} or "decode" inside properties |
| "lowercase" / "to lower case" | lower_case | Not to_lower_case |
| "uppercase" | upper_case | |
| "join", "concatenate", "combine strings" | concatenate | Not join. Takes values array + optional separator |
| "split a string" | split | |
| "replace text" | replace | |
| "convert to number / boolean / string" | change_type | The target type field is named type2 (not type — type is reserved by the wrapper). Easy to miss without reading the schema |
| "trim whitespace" | trim |
Output: scalar transformations land on $.steps.text-helpers-N.result. Verify on the operation's outputSchema.
data-mapper — value/key remappingConnector name: data-mapper. Latest observed version: 3.5. No auth. Three operations, three different output shapes — pick the one that matches your intent and reference its output correctly:
| Operation | What it does | Output jsonpath shape |
|---|---|---|
map_keys | Rename keys on an object using a from → to mapping | $.steps.data-mapper-N.<new-key-name> — mapped keys are emitted at the root, not nested under result |
map_one_value | Translate a single scalar via a from → to mapping (with default) | $.steps.data-mapper-N.result |
map_values | Walk an input array/object and translate values using from → to | $.steps.data-mapper-N.output[<index>].<field> (mapped values land under output, not result) |
The Researcher subagent occasionally reports map_values output as living at $.steps.<name> directly — that's wrong; it's under .output. The validator catches it, but you can pre-empt the round-trip by referencing .output from the start.
All three operations share the mappings array property — items are {from, to} objects (change_type uses type2, data-mapper uses from/to). Each mapping item must be {type:"object", value:{from:{...}, to:{...}}} per the object-array-items rule.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub trayio/tray-plugins --plugin tray-workflows5 skills in this plugin
/build-workflowBuild or modify Tray workflows. Use this skill whenever the user asks to create, build, or modify a workflow — including requests like "build a workflow that...", "create a workflow to...", "set up an integration between...", "automate X", or "modify the workflow that...".
Examples of when this skill MUST be loaded:
- "Build a workflow that syncs Salesforce leads to Slack"
- "Create a scheduled job that sends a daily email report"
- "Set up an integration between HubSpot and Google Sheets"
- "Modify the existing lead scoring workflow to add error handling"
- "I have a Workato recipe — can you recreate it in Tray?"
This skill is the entry point for ALL workflow creation and modification. Load it BEFORE making any create_workflow, add_workflow_steps, or update_workflow_steps calls.
/research-connectorSystematic process for researching unknown Tray connectors via DDL discovery/tray-gotchasLoad when debugging a Tray workflow error or working with known-weird surfaces — `raw_http_request` input format, `has_dynamic_output` rules, `trigger-reply`'s empty inputSchema, callable workflow sync/async pairing, jsonpath output-shape differences across step types, scheduled-trigger `day_of_week` explicit-keys rule, Salesforce custom (`*__c`) field picklist values, and stale `version_id` recovery./tray-patternsLoad when structuring a workflow — branches, loops (the `_loop` wrapper), callable workflows (sync vs async + the `callable-workflow-response` pairing), scheduled triggers (the full `day_of_week` object), manual error handling (`error_handling: "manual"` + `update_workflow_structure`), and the mandatory version_id chaining across mutations.Other plugins' skills for the same job