Get Schedule
getScheduleGet one schedule by id (from listSchedules, or the scheduleId on a batch run or sweep run): the same fields as listSchedules. Use when: a run says it was started by a schedule and you want to say which and when it runs. Read-only. Needs scheduling:read. Returns 404 if the schedule is not in your workspace.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "getSchedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Schedule identifier. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| runAt | No | ISO-8601 timestamp the schedule should fire at, required when `scheduleType: once`. Must be in the future at create-time. | |
| enabled | Yes | String-typed boolean (DDB GSI key constraint). `'true'` = active, `'false'` = paused. Toggle via `pauseSchedule` / `resumeSchedule`. | |
| runCount | Yes | Total number of times this schedule has been triggered. | |
| targetId | No | Optional — target test-config id, map id, or batch id depending on `targetType`. | |
| timezone | Yes | IANA timezone identifier used to evaluate cron expressions. | |
| createdAt | Yes | ||
| createdBy | Yes | ||
| lastRunAt | No | Timestamp of the most recent trigger. Absent until the first fire. | |
| nextRunAt | Yes | Timestamp the schedule will next fire. Recomputed on each successful trigger. | |
| updatedAt | Yes | ||
| targetType | No | Target kind when the schedule has a direct attachment. `test` triggers a test run, `map` triggers a mapping job, `batch` triggers a batch dispatch. Optional — schedules without `targetId`/`targetType` are reusable templates (handled by downstream orchestration). | |
| description | No | ||
| workspaceId | Yes | ||
| scheduleType | Yes | Trigger semantics. `once` fires at the specific `runAt` timestamp; `recurring` fires every `intervalMinutes`; `cron` fires according to the supplied `cronExpression` (5-field cron syntax interpreted in `timezone`). | |
| cronExpression | No | 5-field cron expression (minute hour day-of-month month day-of-week), required when `scheduleType: cron`. Validated server-side. | |
| intervalMinutes | No | Interval in minutes, required when `scheduleType: recurring`. | |
| eventBridgeRuleArn | No | ARN of the underlying EventBridge rule (when one is attached). Present for legacy schedules only. | |
| eventBridgeRuleName | No | Name of the underlying EventBridge rule (when one is attached). Present for legacy schedules only. |