Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude
API/schemas
Schema

FileStepDefinition

File step β€” artifact-aware file operations. ``file_op`` selects the sub-mode, and the operands differ per mode, which is why they are all optional here and validated per-mode below rather than by declaring five near-identical step types. Note ``from_artifact_id`` and ``file_upload_id`` are NOT interchangeable: the former is a ``workstreams.cycle_artifact`` (something a cycle produced), the latter a ``platform.file_uploads`` id (something a human uploaded). Confusing them is a documented past defect (issue f96491b9).

FieldTypeDescription
idrequiredstringβ€”
namerequiredstringβ€”
typestringβ€”
descriptionstring | nullβ€”
depends_onstring | object[]β€”
stagestring | nullβ€”
timeoutstring | nullβ€”
retry_policyRetryPolicy | nullβ€”
error_handlerStepErrorHandler | nullβ€”
emit_artifactEmitArtifactSpec | nullβ€”
optionalbooleanβ€”
continue_on_errorbooleanβ€”
halt_conditionsHaltCondition[]β€”
item shape
parametersStepParameter[]β€”
item shape
guardsStepGuard[]β€”
item shape
impact_level"low" | "medium" | "high" | "critical"Impact classification for steps.
lowmediumhighcritical
run_mode"propose" | "auto_run"Execution mode for steps.
proposeauto_run
requires_approvalbooleanβ€”
metadataobject | nullβ€”
examplesStepExample[] | nullAttached example files for this step. Each entry pairs a platform.file_uploads.file_id with a role + tags + notes so the runtime can shape its instruction. Bounded at 20 to keep a reasonable upper limit on the prompt preamble.
applies_whenstring | nullCEL predicate evaluated at MATERIALIZATION (not at step execution): the step is marked skipped when it evaluates False. Stored verbatim β€” the expression is parsed by celpy at launch, so any coercion here would change its meaning.
tagsstring[] | nullCategorical labels on the step itself (e.g. 'pdf-read', 'coutts', 'fy25'). Free-form; recommended tag set is documented per workstream surface.
firm_question_codesstring[] | nullBlocker codes this step may raise that are questions the run asks the firm later, not reasons to stop. A code listed here is carried past the blocker barrier (and recorded on the run's carried_blockers) unless the resolution form refuses it. Matched exactly against the blocker codes this step itself raises; a code not listed here still stops the run.
decidesanytreatment | classification | difference, when the step decides one
domain_questionany{domain, issue}: the domain question asked
no_domain_reasonany{reason, card_link}: no domain covers it
instructionstring | nullNatural-language instruction, Jinja2-rendered before execution
expected_outputsobject[] | nullDeclared output shape, used by the lint's output-reference checks
file_oprequired"write" | "download_url" | "read_artifact" | "read_upload" | "transform"Which file operation to perform
writedownload_urlread_artifactread_uploadtransform
file_urlstring | nullSource URL for file_op=download_url
from_artifact_idstring | nullcycle_artifact id β€” a workflow-GENERATED output (read_artifact)
file_upload_idstring | nullplatform.file_uploads id β€” a HUMAN-uploaded file (read_upload)
artifact_namestring | nullName for a written artifact
artifact_typestring | nullArtifact type tag
transform"base64_encode" | "csv_to_json" | "json_to_csv" | nullTransformation to apply for file_op=transform