Manage a workspace trigger (SFTP/AWS S3 pull, spec chaining, or schedule)
manage_triggerManage workspace job triggers: create, list, update, delete, fire, and monitor run history for SFTP, AWS S3, schedule, and spec-success triggers.
Instructions
Create, list, update, delete, or fire a workspace job trigger. Types: "sftp"/"aws_s3" (pulls files from a connection into a spec on a schedule), "spec_success" (fires a spec when a different spec's job completes), "schedule" (fires a spec on a plain cadence, UTC). Use action "run-history" to monitor a fired trigger's outcome.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Trigger type. Defaults to sftp on create. | |
| action | Yes | Which operation to perform. | |
| cursor | No | run-history: opaque nextCursor from a prior page. | |
| dedupe | No | sftp/aws_s3 only. Required for create — whether repeat pulls skip files already loaded. | |
| specId | No | run-history: filter to runs of triggers feeding this spec. | |
| enabled | No | Whether the trigger is active. Defaults to true on create. | |
| endTime | No | run-history: ISO 8601 upper bound on when the run started. | |
| pageSize | No | run-history: records per page (default 25). | |
| preRules | No | sftp/aws_s3 only. Natural language: which files to pick up. | |
| s3Bucket | No | aws_s3 only. Bucket to poll. | |
| s3Prefix | No | aws_s3 only. Optional key prefix. | |
| specName | No | The spec this trigger fires. Required for create. | |
| frequency | No | Required for create when type is sftp/aws_s3/schedule. | |
| postRules | No | sftp/aws_s3 only. Natural language: what to do after a file loads. | |
| startTime | No | run-history: ISO 8601 lower bound on when the run started. | |
| triggerId | No | Existing trigger. Required for update/delete/run-now/clear-processed-files. | |
| workspaceId | No | Workspace to act on. Defaults to your only workspace if you have exactly one. | |
| connectionId | No | sftp/aws_s3 only. Connection to pull from. Also usable as a run-history filter. | |
| upstreamSpecName | No | spec_success only. Required for create when type is spec_success. |