Run a runbook in Octopus Deploy
run_runbookAutomate operational tasks like database backups and smoke tests by running a runbook against one or more environments in Octopus Deploy.
Instructions
Run a runbook against one or more environments in Octopus Deploy
Runbooks execute operational processes (DB backups, smoke tests, environment refresh, etc.) against the specified environments. By default the published snapshot is used; pass runbookSnapshotId to run a specific snapshot. For tenanted runs, supply tenants and/or tenantTags.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spaceName | Yes | The space name | |
| projectName | Yes | The project name | |
| runbookName | Yes | The runbook name (within the project) | |
| environmentNames | Yes | Array of environment names. At least one environment must be provided. | |
| tenants | No | Array of tenant names for tenanted runs (optional) | |
| tenantTags | No | Array of tenant tags for tenanted runs (e.g., ['Region/US-West', 'Tier/Production']) | |
| runbookSnapshotId | No | Specific snapshot ID. Defaults to the runbook's published snapshot if omitted. | |
| promptedVariableValues | No | Prompted variable values as key-value pairs | |
| useGuidedFailure | No | Use guided failure mode | |
| forcePackageDownload | No | Force package download | |
| specificMachineNames | No | Run on specific machines only | |
| excludedMachineNames | No | Exclude specific machines from the run | |
| skipStepNames | No | Skip specific runbook steps | |
| runAt | No | Schedule run for later (ISO 8601 date string) | |
| noRunAfter | No | Don't run after this time (ISO 8601 date string) | |
| confirm | No | Required only when the MCP client does not support elicitation. Set to true to confirm the run; otherwise the tool aborts. |