AgentBoard

Run command action

Run Command Action

Use agentboard/run-cmd to run a shell command for each collected item.

[[sources.actions]]
uses = "agentboard/run-cmd"

[sources.actions.with]
cmd = "echo {{ item.id }} {{ item.title }}"

AgentBoard runs the command through sh -c. Templates can use the collected item and source fields.

The command receives these environment variables:

  • AGENTBOARD_WORKSPACE_ID
  • AGENTBOARD_SOURCE_ID
  • AGENTBOARD_ITEM_ID

Set cwd when the command should run from a specific directory.

[sources.actions.with]
cwd = "/home/me/dev/myrepo"
cmd = "pi --prompt '{{ item.title }}'"

On this page