Documentation Index
Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Tasks
Tasks are user-defined functions intasks/ that can run locally via veryfront task <name> or in the cloud as Jobs and Cron Jobs.
Quick start
Create a task file:Task definition
A task file exports aTaskDefinition object as its default export:
| Field | Required | Description |
|---|---|---|
name | No | Human-readable name |
description | No | What the task does |
inputSchema | No | JSON-schema-like input contract for APIs and UIs |
outputSchema | No | JSON-schema-like output contract |
schedulable | No | Whether it can be used as a cron job target |
run | Yes | The function to execute |
Task context
Therun function receives a TaskContext:
env— filtered environment variables (useenvAllowlistto restrict)config— job configuration (passed when run as a cloud job)projectId— project identifier (available in cloud context)
Discovery
Tasks are discovered automatically from thetasks/ directory:
.ts, .tsx, .js, .jsx are supported. Test files and node_modules are ignored.
Running tasks
CLI
As a cloud job
Tasks withschedulable: true can be targeted by Jobs and Cron Jobs:
Next
- Jobs & Cron Jobs — schedule tasks as cloud jobs
- Agents — agents can invoke tasks as tools
Related
- Jobs & Cron Jobs — the jobs system that executes scheduled tasks