apply
Approve the plan a convergence waits on, named by its digest, and apply it — tofu apply of the vended plan. Calling this IS the approval. Applies the round, then stops at the next round’s plan gate (awaiting_plan; call plan) when a change was deferred, or ends the convergence: converged, stalled, exhausted, stale, failed or cancelled. decline declines the plan instead: nothing of it is applied and the convergence ends declined (reason says why). Turf actions the apply triggers stop it too (awaiting_actions, with action_requests): steps the configuration asks you to carry out — a check, a notification, a question for the user. Perform them, then call apply with action_results, one result per key, all at once; that call follows the apply on. A plan_digest approves only the plan it names: one naming another plan this server vended is refused, and after a takeover (a server restart, a convergence open reported) the plan the engine holds is vended anew with a note instead — nothing is applied either way. With no digest, no decline and no results, nothing is answered: a convergence waiting at a gate is handed back as it stands (its plan vended again at an approval point), and one planning or applying is followed. Names the convergence by convergence_id, or by the workspace it holds (workspace_alias). With planfile (and plan_digest, its digest): applies a planfile a plan_only run left — a new one-round convergence on the workspace, which must be free — ending converged, exhausted, or stale (the digest is not the plan’s, or the configuration, the state or the workspace moved since the plan; the planfile stays). A planfile that expired or was applied already is refused by name. Returns applying at the server’s deadline (ended false): the convergence goes on in the engine; call apply again to follow it. The same holds if the call ends early (cancelled, or the client went away); cancel stops it.
Tiers: apply · full
Annotations
Section titled “Annotations”| Annotation | Value |
|---|---|
title |
Approve and apply plan |
readOnlyHint |
false |
destructiveHint |
true |
idempotentHint |
false |
openWorldHint |
true |
Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
convergence_id |
string | no | The convergence_id from the result that vended the plan, or that listed the turf actions. To approve a plan, or to take a convergence up, it may be omitted for the workspace it holds (workspace_alias); decline and action_results need it. |
workspace_alias |
string | no | Without convergence_id: the workspace whose convergence to continue — its alias as ‘open’ named it, omitted for the workspace opened without an alias (‘default’). |
plan_digest |
string | no | plan.digest from the result that vended the plan: the plan you are approving. The digest of any other plan is refused. Omit it, decline and action_results to take up a convergence without answering anything (‘open’ reported it, or a call ended early): the gate it waits at is handed back, nothing approved. |
decline |
boolean | no | At awaiting_approval: decline the plan instead of approving it. Nothing of it is applied, and the convergence ends declined. Names the convergence by convergence_id; never with plan_digest or action_results. |
reason |
string | no | With decline: why, recorded on the round. |
action_results |
map of object | no | At awaiting_actions: your result for each of action_requests, by its key — every one at once, to the convergence_id that listed them. A result that is refused is named under refused in the result, and its request stays open. |
action_results.<key>.succeeded |
boolean | yes | Whether the step did what the prompt asked. false fails the action, and on_failure decides what that does; it needs at least one error diagnostic saying why. |
action_results.<key>.progress |
array of string | no | What was done, a line each, in order — the commands run, what each showed, the user’s own words. Recorded as the action’s progress. |
action_results.<key>.diagnostics |
array of object | no | Problems found: an error for each reason the step failed (only when succeeded is false), a warning for anything worth knowing that did not fail it. |
action_results.<key>.diagnostics[].severity |
string | yes | error or warning. |
action_results.<key>.diagnostics[].summary |
string | yes | One line. |
action_results.<key>.diagnostics[].detail |
string | no | The specifics: what was observed, what was expected. |
planfile |
string | no | A planfile to apply on the workspace (workspace_alias): planfile.ref from the planned result of a plan_only run (status lists the planfiles a workspace holds). With plan_digest, the planfile’s digest as you read it (planfile.digest; show with planfile reads the document) — the approval, of exactly that plan; with any other digest the convergence ends stale and nothing is applied. Starts a new one-round convergence that applies the plan as it was made: stale too when the configuration, the state or the workspace moved since (the planfile stays for another try). A planfile that expired or was applied already is refused by name. The workspace must be free. Never with convergence_id, decline, reason or action_results. |
Turf™ is a trademark of Turf LLC. Terraform® is a trademark of HashiCorp. Ansible® is a trademark of Red Hat, LLC, registered in the United States and other countries. Helm®, Kubernetes®, Prometheus® and OpenTelemetry® are registered trademarks, and Jaeger™ is a trademark, of the Linux Foundation. OpenTofu® and Model Context Protocol® are registered trademarks of LF Projects, LLC. All other trademarks are the property of their respective owners. Turf is not affiliated with, endorsed by, or sponsored by HashiCorp, IBM, Red Hat, the Linux Foundation, LF Projects or the OpenTofu project.
© 2026 Turf LLC. Free for individuals, education and small businesses within the Community limits, under the Turf Community Edition License 1.0. Government and larger organizations need a commerciallicense.turf.build · Discord ·GitHub