Skip to content

feat: add API endpoint and CLI command to retrieve workflow input#293

Merged
szanata merged 8 commits into
mainfrom
cli_workflow_input
Jul 3, 2026
Merged

feat: add API endpoint and CLI command to retrieve workflow input#293
szanata merged 8 commits into
mainfrom
cli_workflow_input

Conversation

@catsby

@catsby catsby commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Adds API/CLI to get the input used from a workflow.

Example usage:

❯ output workflow input 5n0pcHLKGXb7HwAJ8-KZo
{
  "urls": [
    "https://a.com",
    "https://b.com",
    "https://c.com",
    "https://d.com"
  ],
  "delayMs": 5000
}

Write to file:

❯ output workflow input 5n0pcHLKGXb7HwAJ8-KZo -o file.json
Wrote workflow input to /Users/clint/go/github.com/growthxai/output/.claude/worktrees/cli_workflow_input/file.json

❯ cat file.json
{
  "urls": [
    "https://a.com",
    "https://b.com",
    "https://c.com",
    "https://d.com"
  ],
  "delayMs": 5000
}

Note: at time of writing, the --json flag actually provides more information, including the workflow and run ids. I'm not sure if we should keep that, or invert it (--json omits that, but by default we include it):

❯ output workflow input 5n0pcHLKGXb7HwAJ8-KZo --json
{
  "workflowId": "5n0pcHLKGXb7HwAJ8-KZo",
  "runId": "019f0081-835b-7812-9872-897cbc4c01fc",
  "input": {
    "urls": [
      "https://a.com",
      "https://b.com",
      "https://c.com",
      "https://d.com"
    ],
    "delayMs": 5000
  }
}

Also accepts runId:

❯ output workflow input 5n0pcHLKGXb7HwAJ8-KZo --run-id 019f0081-835b-7812-9872-897cbc4c01fc
{
  "urls": [
    "https://a.com",
    "https://b.com",
    "https://c.com",
    "https://d.com"
  ],
  "delayMs": 5000
}

catsby added 4 commits June 29, 2026 16:14
Signed-off-by: Clint Shryock <clint@growthx.ai>
Signed-off-by: Clint Shryock <clint@growthx.ai>
Signed-off-by: Clint Shryock <clint@growthx.ai>
Signed-off-by: Clint Shryock <clint@growthx.ai>
@mintlify

mintlify Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
outputai 🟢 Ready View Preview Jun 29, 2026, 11:27 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

catsby added 3 commits June 29, 2026 19:09
Signed-off-by: Clint Shryock <clint@growthx.ai>
Signed-off-by: Clint Shryock <clint@growthx.ai>
Signed-off-by: Clint Shryock <clint@growthx.ai>
Comment thread api/src/clients/temporal/workflow/get_input.js Outdated
Comment thread api/src/clients/temporal/workflow/fetch_history_page.js
Signed-off-by: Clint Shryock <clint@growthx.ai>
@szanata szanata merged commit 14a0cfc into main Jul 3, 2026
14 checks passed
@szanata szanata deleted the cli_workflow_input branch July 3, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants