kdeps-components-exec
v1.0.0kdeps kdeps-component: exec
set components / shelf workflow
PurposeRun a shell command through the kdeps API
LLM context: ~181 tokens when loaded (prompt or tool definition)
Where it runs
Part of the components set, used in workflow and agent mode. Ready-made workflow steps (sql, browser, email, git, ocr...) a resource calls by name; in agent mode they are also tools.
- a resource names a component (or the model calls it as a tool)
- the component's own resources runcomponents/exec
- its output goes back to the caller
Loaded by: kdeps (agent loop), /settings, kdeps validate, kdeps run, kdeps bundle package, kdeps env, kdeps export k8s, kdeps test
In the code: kdeps (agent loop)yaml.(*Parser).ParseWorkflowyaml.(*Parser).loadAssetComponents
Install
A kdeps asset: installed with the first-run profile that includes its set, or the first time a command needs it, and updated without a new release.
Also installs what it requires, when missing or older: schemas/v1, tools/exec.
Pin a version with kdeps install components/exec@<version>.
Contents
component.yaml
apiVersion: kdeps.io/v1
kind: Component
metadata:
name: exec
description: Run a shell command through the kdeps API
version: "1.0.0"
interface:
inputs:
- name: command
type: string
required: true
description: Command to run; sh -c on Unix, cmd /C on Windows, unless args are given
- name: args
type: array
description: Arguments for command. When set, command runs directly instead of through a shell
- name: env
type: object
description: Extra environment variables as key-value pairs; the process environment is inherited
- name: workingDir
type: string
description: "Directory the command runs in. Default: the kdeps process working directory"
- name: timeout
type: string
description: Hard stop for the command, for example 30s
# Each call posts to the kdeps API tool, which runs the exec executor; the
# component output is the executor's structured result.
output: "{{ fromJSON(output('call').body) }}"
resources:
- actionId: call
name: Run command
httpClient:
method: POST
# In-process host. The HTTP executor calls the handler without dialing.
url: http://kdeps.api/apis/tools.kdeps.io/v1/tools/exec/call
headers:
Content-Type: application/json
failOnError: true
timeout: 600s # hard stop for the call; the command's own timeout fires first
data:
command: "{{ get('exec.command') }}"
args: "{{ get('exec.args') }}"
env: "{{ get('exec.env') }}"
workingDir: "{{ get('exec.workingDir') }}"
timeout: "{{ get('exec.timeout') }}"
requires:
schemas/v1: ""
tools/exec: ""
version: 1.0.0
requires:
schemas/v1: ""
tools/exec: ""
files:
component.yaml: |
apiVersion: kdeps.io/v1
kind: Component
metadata:
name: exec
description: Run a shell command through the kdeps API
version: "1.0.0"
interface:
inputs:
- name: command
type: string
required: true
description: Command to run; sh -c on Unix, cmd /C on Windows, unless args are given
- name: args
type: array
description: Arguments for command. When set, command runs directly instead of through a shell
- name: env
type: object
description: Extra environment variables as key-value pairs; the process environment is inherited
- name: workingDir
type: string
description: "Directory the command runs in. Default: the kdeps process working directory"
- name: timeout
type: string
description: Hard stop for the command, for example 30s
# Each call posts to the kdeps API tool, which runs the exec executor; the
# component output is the executor's structured result.
output: "{{ fromJSON(output('call').body) }}"
resources:
- actionId: call
name: Run command
httpClient:
method: POST
# In-process host. The HTTP executor calls the handler without dialing.
url: http://kdeps.api/apis/tools.kdeps.io/v1/tools/exec/call
headers:
Content-Type: application/json
failOnError: true
timeout: 600s # hard stop for the call; the command's own timeout fires first
data:
command: "{{ get('exec.command') }}"
args: "{{ get('exec.args') }}"
env: "{{ get('exec.env') }}"
workingDir: "{{ get('exec.workingDir') }}"
timeout: "{{ get('exec.timeout') }}"
Versions
| Version | Published | Status |
|---|---|---|
| 1.0.0 | 10/21/2026 | active |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.0
- Published
- 10/21/2026