Full schema
Input types
All values are passed to yourrun() function as the Python type shown.
| Type | Python type | Use for | Extra fields |
|---|---|---|---|
text | str | Short strings (name, query, ID) | |
textarea | str | Long text (500+ chars) | |
url | str | Links, API endpoints | |
file | str | File uploads. Receives an R2 URL; download with requests.get() | accept: e.g. .pdf,.csv |
number | float/int | Numbers, percentages | min, max |
enum | str | Fixed choices | options: ["opt1", "opt2"] |
boolean | bool | True/false toggles | |
date | str | ISO 8601 date string (2024-01-15) |
Input field reference
| Field | Required | Description |
|---|---|---|
name | Yes | Must match the run() parameter name |
label | Yes | Display label in the web UI |
type | Yes | One of the types above |
description | No | Help text shown below the input |
required | No | Default true. Set false for optional inputs |
default | No | Pre-filled value |
options | No | For enum type only |
accept | No | For file type: accepted extensions |
min, max | No | For number type: value bounds |
Output types
Yourrun() function returns a dict. Each key maps to an output entry.
| Type | Use for | Extra fields |
|---|---|---|
text | String output | |
table | List of dicts | columns: ["col1", "col2"] |
number | Formatted number | |
html | Rendered HTML | |
pdf | PDF document | |
image | Base64-encoded image |
Scheduling
Addschedule with a cron string to run automatically. If the automation has required inputs, set scheduleInputs with default values.
0 9 * * *— every day at 9am0 9 * * 1— every Monday at 9am0 */6 * * *— every 6 hours0 0 1 * *— first of every month
Dependencies
List pip packages inpython_dependencies. They are installed before each run.
requests, httpx, and anthropic are always available. Only list additional packages.
Secrets
List required environment variables insecrets_needed. Store them via the secrets API or the dashboard.