Component resource reference
This page lists every field and option. The overview shows what it does and a first example.
The component: resource calls a reusable resource bundle - a registry component installed with kdeps install, or a custom component in your project's components/ directory. You pass typed inputs in with:, the component's resources run, and its result comes back.
Where it runs
It runs in a workflow. See Components for registry components, custom components, and how to build one.
Basic usage
yaml
# resources/scrape.yaml
actionId: scrape
name: Extract Page Content
component:
name: web_scraper # from the components asset set
with:
url: "https://example.com"yaml
# resources/reply.yaml
actionId: reply
name: Send Telegram Reply
component:
name: telegram_post # a connector component
with:
path: sendMessage
body: { chat_id: 42, text: "Hello!" }Configuration options
| Option | Description |
|---|---|
name | Component name - either the registry install name, or a directory under components/ (required) |
version | Pin a specific installed version (registry components only) |
with | Key-value inputs passed to the component. Each entry is injected as set('<callerActionId>.<key>', value) before the component's resources run, so the same component can be called multiple times with different inputs in one workflow |
Output
The output of the result resource of the component. The shape changes with the component. Check the component's own documentation or component.yaml for its output contract.
See also
- Components - registry vs. custom components, how to build and publish one
- Agent resource - call a full sibling agent instead of a component
- Resources overview - all resource types
