Skip to content

preview_stack_update

Preview a typed partial Stack edit with trusted configuration access. Reads authoritative configuration and returns redacted changed fields, resolved identity and a ten-minute process-local single-use preview_id; performs zero writes, including no-op edits. Edit auto_pull, environment, ignore_services, project_name, source or attachment. Applying any supplied source also requires the independent operate grant, even if auto_update is currently disabled, because Core policy can race; configuration-only callers may preview it. Omitted fields are preserved; null is rejected; documented empty values clear supported fields. Source selectors distinguish inline, Git, linked Repo and existing host files; attachment resolves an existing Server or Swarm. Never copy display redaction markers into input. Saving is separate from deployment and health. MCP submits no deploy/file-write/Git-commit command. Core refreshes caches and source-field updates trigger its update check: an enabled saved auto_update policy can deploy through Core, so source apply requires both local grants. Inspect the previewed effects. Apply must use the exact same target and patch; the authoritative baseline is kept privately, including secrets.

Availability

KOMODO_ALLOW_CONFIGURATION_EDIT=true

The instance’s tool selection and upstream Core permissions also apply. Some inputs require additional grants.

Effect annotations

  • readOnlyHint — true
  • destructiveHint — false
  • idempotentHint — false

Inputs

The registered schema gives field types, alternatives and declared bounds. The description and operator guides also cover checks applied at runtime.

patch
Required · Schema StackPatch
target
Required · Schema DetailInput
Show input JSON Schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "patch": {
      "$ref": "#/$defs/StackPatch"
    },
    "target": {
      "$ref": "#/$defs/DetailInput"
    }
  },
  "required": [
    "target",
    "patch"
  ],
  "$defs": {
    "Attachment": {
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "server",
              "type": "string"
            },
            "target": {
              "$ref": "#/$defs/DetailInput"
            }
          },
          "required": [
            "kind",
            "target"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "swarm",
              "type": "string"
            },
            "target": {
              "$ref": "#/$defs/DetailInput"
            }
          },
          "required": [
            "kind",
            "target"
          ],
          "type": "object"
        }
      ]
    },
    "DetailInput": {
      "additionalProperties": false,
      "oneOf": [
        {
          "required": [
            "id"
          ]
        },
        {
          "required": [
            "name"
          ]
        }
      ],
      "properties": {
        "id": {
          "description": "Exact stable resource ID returned by a list tool.",
          "pattern": "^[0-9a-fA-F]{24}$",
          "type": "string"
        },
        "name": {
          "description": "Exact, case-sensitive name within this family; never interpreted as an ID.",
          "minLength": 1,
          "pattern": "\\S",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Source": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "Replace managed inline Compose content; never writes a host/Git file.",
          "properties": {
            "contents": {
              "type": "string"
            },
            "file_paths": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "kind": {
              "const": "inline",
              "type": "string"
            },
            "run_directory": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "contents"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "Set the Git repo; omitted Git options preserve existing values.",
          "properties": {
            "account": {
              "type": "string"
            },
            "branch": {
              "type": "string"
            },
            "commit": {
              "type": "string"
            },
            "file_paths": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "https": {
              "type": "boolean"
            },
            "kind": {
              "const": "git",
              "type": "string"
            },
            "provider": {
              "type": "string"
            },
            "repo": {
              "type": "string"
            },
            "run_directory": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "repo"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "file_paths": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "kind": {
              "const": "linked_repo",
              "type": "string"
            },
            "run_directory": {
              "type": "string"
            },
            "target": {
              "$ref": "#/$defs/DetailInput"
            }
          },
          "required": [
            "kind",
            "target"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "Select existing host files. This never writes their contents.",
          "properties": {
            "file_paths": {
              "description": "[] selects Core's default compose.yaml.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "kind": {
              "const": "host",
              "type": "string"
            },
            "run_directory": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "run_directory",
            "file_paths"
          ],
          "type": "object"
        }
      ]
    },
    "StackPatch": {
      "additionalProperties": false,
      "description": "Omission preserves a field; null is invalid. Empty environment and an empty\nignore list explicitly clear those fields. Boolean values cannot be cleared.",
      "properties": {
        "attachment": {
          "$ref": "#/$defs/Attachment"
        },
        "auto_pull": {
          "type": "boolean"
        },
        "environment": {
          "description": "Secret-bearing Compose environment. Returned only as a redacted change.",
          "type": "string"
        },
        "ignore_services": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "project_name": {
          "description": "Empty string restores Core's default Stack-name project selection.",
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/Source",
          "description": "Applying a supplied source needs both local operate and configuration-edit\ngrants, regardless of Core's current auto_update policy. Creation is separate."
        }
      },
      "type": "object"
    }
  }
}

Output

The registered output schema covers structured results and tool errors.

ConfigurationResult
changes, definition, effects, observation_error, outcome, preview_id, resource, saved_configuration_verified, writes_submitted
AppError
candidates, correction, field, kind, message, operation, status
Show output JSON Schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "$ref": "#/$defs/ConfigurationResult"
    },
    {
      "$ref": "#/$defs/AppError"
    }
  ],
  "$defs": {
    "AppError": {
      "additionalProperties": false,
      "description": "Only application-owned messages and selected, nonsensitive metadata survive.",
      "properties": {
        "candidates": {
          "items": {
            "$ref": "#/$defs/Candidate"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "correction": {
          "type": [
            "string",
            "null"
          ]
        },
        "field": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "$ref": "#/$defs/ErrorKind"
        },
        "message": {
          "type": "string"
        },
        "operation": {
          "type": "string"
        },
        "status": {
          "format": "uint16",
          "maximum": 65535,
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "kind",
        "message",
        "operation"
      ],
      "type": "object"
    },
    "AttachmentSummary": {
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "type": "object"
    },
    "Candidate": {
      "additionalProperties": false,
      "description": "A bounded ambiguity hint, never a raw upstream resource.",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "type": "object"
    },
    "ConfigurationOutcome": {
      "enum": [
        "preview",
        "no_op",
        "saved",
        "submission_unknown"
      ],
      "type": "string"
    },
    "ConfigurationResult": {
      "properties": {
        "changes": {
          "items": {
            "$ref": "#/$defs/FieldChange"
          },
          "type": "array"
        },
        "definition": {
          "anyOf": [
            {
              "$ref": "#/$defs/DefinitionPreview"
            },
            {
              "type": "null"
            }
          ]
        },
        "effects": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "observation_error": {
          "anyOf": [
            {
              "$ref": "#/$defs/AppError"
            },
            {
              "type": "null"
            }
          ]
        },
        "outcome": {
          "$ref": "#/$defs/ConfigurationOutcome"
        },
        "preview_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "resource": {
          "$ref": "#/$defs/ConfigurationTarget"
        },
        "saved_configuration_verified": {
          "type": "boolean"
        },
        "writes_submitted": {
          "format": "uint8",
          "maximum": 255,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "outcome",
        "resource",
        "preview_id",
        "changes",
        "writes_submitted",
        "saved_configuration_verified",
        "observation_error",
        "effects"
      ],
      "type": "object"
    },
    "ConfigurationTarget": {
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id",
        "name"
      ],
      "type": "object"
    },
    "ConnectionObservation": {
      "properties": {
        "connection_verified": {
          "type": "boolean"
        },
        "core_reported_state": {
          "type": [
            "string",
            "null"
          ]
        },
        "error": {
          "anyOf": [
            {
              "$ref": "#/$defs/AppError"
            },
            {
              "type": "null"
            }
          ]
        },
        "observed_at": {
          "type": "string"
        }
      },
      "required": [
        "core_reported_state",
        "connection_verified",
        "observed_at",
        "error"
      ],
      "type": "object"
    },
    "CredentialObservation": {
      "properties": {
        "evidence_limit": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "registry_index": {
          "format": "uint",
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "sources_complete": {
          "type": "boolean"
        },
        "visible_reference_found": {
          "type": "boolean"
        }
      },
      "required": [
        "kind",
        "registry_index",
        "visible_reference_found",
        "sources_complete",
        "evidence_limit"
      ],
      "type": "object"
    },
    "DefinitionPreview": {
      "oneOf": [
        {
          "properties": {
            "details": {
              "$ref": "#/$defs/DefinitionPreview2"
            },
            "kind": {
              "const": "stack",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "details"
          ],
          "type": "object"
        },
        {
          "properties": {
            "details": {
              "$ref": "#/$defs/DefinitionPreview3"
            },
            "kind": {
              "const": "deployment",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "details"
          ],
          "type": "object"
        },
        {
          "properties": {
            "details": {
              "$ref": "#/$defs/DefinitionPreview4"
            },
            "kind": {
              "const": "server",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "details"
          ],
          "type": "object"
        },
        {
          "properties": {
            "details": {
              "$ref": "#/$defs/DefinitionPreview5"
            },
            "kind": {
              "const": "repo",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "details"
          ],
          "type": "object"
        },
        {
          "properties": {
            "details": {
              "$ref": "#/$defs/DefinitionPreview6"
            },
            "kind": {
              "const": "resource_sync",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "details"
          ],
          "type": "object"
        },
        {
          "properties": {
            "details": {
              "$ref": "#/$defs/DefinitionPreview7"
            },
            "kind": {
              "const": "builder",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "details"
          ],
          "type": "object"
        },
        {
          "properties": {
            "details": {
              "$ref": "#/$defs/DefinitionPreview8"
            },
            "kind": {
              "const": "alerter",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "details"
          ],
          "type": "object"
        },
        {
          "properties": {
            "details": {
              "$ref": "#/$defs/DefinitionPreview9"
            },
            "kind": {
              "const": "build",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "details"
          ],
          "type": "object"
        },
        {
          "properties": {
            "details": {
              "$ref": "#/$defs/DefinitionPreview10"
            },
            "kind": {
              "const": "procedure",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "details"
          ],
          "type": "object"
        },
        {
          "properties": {
            "details": {
              "$ref": "#/$defs/DefinitionPreview11"
            },
            "kind": {
              "const": "action",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "details"
          ],
          "type": "object"
        },
        {
          "properties": {
            "details": {
              "$ref": "#/$defs/DefinitionPreview12"
            },
            "kind": {
              "const": "schedule",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "details"
          ],
          "type": "object"
        }
      ]
    },
    "DefinitionPreview10": {
      "properties": {
        "after": {
          "$ref": "#/$defs/DefinitionSummary9"
        },
        "before": {
          "anyOf": [
            {
              "$ref": "#/$defs/DefinitionSummary9"
            },
            {
              "type": "null"
            }
          ]
        },
        "reference_evidence": {
          "$ref": "#/$defs/ReferenceEvidence"
        },
        "requires_operate_to_apply": {
          "type": "boolean"
        }
      },
      "required": [
        "before",
        "after",
        "requires_operate_to_apply",
        "reference_evidence"
      ],
      "type": "object"
    },
    "DefinitionPreview11": {
      "properties": {
        "after": {
          "$ref": "#/$defs/DefinitionSummary10"
        },
        "before": {
          "anyOf": [
            {
              "$ref": "#/$defs/DefinitionSummary10"
            },
            {
              "type": "null"
            }
          ]
        },
        "requires_operate_to_apply": {
          "type": "boolean"
        }
      },
      "required": [
        "before",
        "after",
        "requires_operate_to_apply"
      ],
      "type": "object"
    },
    "DefinitionPreview12": {
      "properties": {
        "after": {
          "$ref": "#/$defs/Fields"
        },
        "before": {
          "$ref": "#/$defs/Fields"
        },
        "observation": {
          "$ref": "#/$defs/Observation"
        },
        "requires_operate_to_apply": {
          "type": "boolean"
        }
      },
      "required": [
        "before",
        "after",
        "requires_operate_to_apply",
        "observation"
      ],
      "type": "object"
    },
    "DefinitionPreview2": {
      "properties": {
        "after": {
          "$ref": "#/$defs/DefinitionSummary"
        },
        "before": {
          "anyOf": [
            {
              "$ref": "#/$defs/DefinitionSummary"
            },
            {
              "type": "null"
            }
          ]
        },
        "core_auto_deploy_possible": {
          "type": "boolean"
        },
        "observed_runtime_state": {
          "description": "Observation at preview time, never inferred from a successful save.",
          "type": [
            "string",
            "null"
          ]
        },
        "old_target_cleanup": {
          "type": "string"
        },
        "requires_operate_to_apply": {
          "type": "boolean"
        },
        "resolved_references": {
          "items": {
            "$ref": "#/$defs/ReferenceSummary"
          },
          "type": "array"
        },
        "target_changed": {
          "type": "boolean"
        }
      },
      "required": [
        "before",
        "after",
        "resolved_references",
        "observed_runtime_state",
        "core_auto_deploy_possible",
        "requires_operate_to_apply",
        "target_changed",
        "old_target_cleanup"
      ],
      "type": "object"
    },
    "DefinitionPreview3": {
      "properties": {
        "after": {
          "$ref": "#/$defs/DefinitionSummary2"
        },
        "before": {
          "anyOf": [
            {
              "$ref": "#/$defs/DefinitionSummary2"
            },
            {
              "type": "null"
            }
          ]
        },
        "core_auto_deploy_possible": {
          "type": "boolean"
        },
        "core_registry_check_possible": {
          "type": "boolean"
        },
        "old_target_cleanup": {
          "type": "string"
        },
        "requires_operate_to_apply": {
          "type": "boolean"
        },
        "resolved_references": {
          "items": {
            "$ref": "#/$defs/ReferenceSummary"
          },
          "type": "array"
        },
        "runtime_observation": {
          "anyOf": [
            {
              "$ref": "#/$defs/RuntimeObservation"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_changed": {
          "type": "boolean"
        }
      },
      "required": [
        "before",
        "after",
        "resolved_references",
        "runtime_observation",
        "requires_operate_to_apply",
        "core_registry_check_possible",
        "core_auto_deploy_possible",
        "target_changed",
        "old_target_cleanup"
      ],
      "type": "object"
    },
    "DefinitionPreview4": {
      "properties": {
        "after": {
          "$ref": "#/$defs/DefinitionSummary3"
        },
        "before": {
          "anyOf": [
            {
              "$ref": "#/$defs/DefinitionSummary3"
            },
            {
              "type": "null"
            }
          ]
        },
        "connectivity": {
          "anyOf": [
            {
              "$ref": "#/$defs/ConnectionObservation"
            },
            {
              "type": "null"
            }
          ]
        },
        "existing_trust_preserved": {
          "type": "boolean"
        },
        "requires_operate_to_apply": {
          "type": "boolean"
        }
      },
      "required": [
        "before",
        "after",
        "connectivity",
        "requires_operate_to_apply",
        "existing_trust_preserved"
      ],
      "type": "object"
    },
    "DefinitionPreview5": {
      "properties": {
        "after": {
          "$ref": "#/$defs/DefinitionSummary4"
        },
        "before": {
          "anyOf": [
            {
              "$ref": "#/$defs/DefinitionSummary4"
            },
            {
              "type": "null"
            }
          ]
        },
        "reference_validation": {
          "type": "string"
        },
        "requires_operate_to_apply": {
          "type": "boolean"
        }
      },
      "required": [
        "before",
        "after",
        "requires_operate_to_apply",
        "reference_validation"
      ],
      "type": "object"
    },
    "DefinitionPreview6": {
      "properties": {
        "after": {
          "$ref": "#/$defs/DefinitionSummary5"
        },
        "before": {
          "anyOf": [
            {
              "$ref": "#/$defs/DefinitionSummary5"
            },
            {
              "type": "null"
            }
          ]
        },
        "reference_validation": {
          "type": "string"
        },
        "requires_operate_to_apply": {
          "type": "boolean"
        }
      },
      "required": [
        "before",
        "after",
        "requires_operate_to_apply",
        "reference_validation"
      ],
      "type": "object"
    },
    "DefinitionPreview7": {
      "properties": {
        "after": {
          "$ref": "#/$defs/DefinitionSummary6"
        },
        "before": {
          "anyOf": [
            {
              "$ref": "#/$defs/DefinitionSummary6"
            },
            {
              "type": "null"
            }
          ]
        },
        "reference_validation": {
          "type": "string"
        },
        "requires_operate_to_apply": {
          "type": "boolean"
        }
      },
      "required": [
        "before",
        "after",
        "requires_operate_to_apply",
        "reference_validation"
      ],
      "type": "object"
    },
    "DefinitionPreview8": {
      "properties": {
        "after": {
          "$ref": "#/$defs/DefinitionSummary7"
        },
        "before": {
          "anyOf": [
            {
              "$ref": "#/$defs/DefinitionSummary7"
            },
            {
              "type": "null"
            }
          ]
        },
        "requires_operate_to_apply": {
          "type": "boolean"
        }
      },
      "required": [
        "before",
        "after",
        "requires_operate_to_apply"
      ],
      "type": "object"
    },
    "DefinitionPreview9": {
      "properties": {
        "after": {
          "$ref": "#/$defs/DefinitionSummary8"
        },
        "before": {
          "anyOf": [
            {
              "$ref": "#/$defs/DefinitionSummary8"
            },
            {
              "type": "null"
            }
          ]
        },
        "builder": {
          "$ref": "#/$defs/DefinitionSummary6"
        },
        "credentials": {
          "items": {
            "$ref": "#/$defs/CredentialObservation"
          },
          "type": "array"
        },
        "dependent_deployments": {
          "$ref": "#/$defs/DependentEffects"
        },
        "reference_validation": {
          "type": "string"
        },
        "requires_operate_to_apply": {
          "type": "boolean"
        }
      },
      "required": [
        "before",
        "after",
        "builder",
        "credentials",
        "dependent_deployments",
        "requires_operate_to_apply",
        "reference_validation"
      ],
      "type": "object"
    },
    "DefinitionSummary": {
      "properties": {
        "attachment": {
          "anyOf": [
            {
              "$ref": "#/$defs/AttachmentSummary"
            },
            {
              "type": "null"
            }
          ]
        },
        "auto_pull": {
          "type": "boolean"
        },
        "auto_update": {
          "type": "boolean"
        },
        "project_name": {
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/SourceSummary"
        }
      },
      "required": [
        "source",
        "attachment",
        "project_name",
        "auto_pull",
        "auto_update"
      ],
      "type": "object"
    },
    "DefinitionSummary10": {
      "properties": {
        "argument_merge": {
          "type": "string"
        },
        "arguments_format": {
          "type": "string"
        },
        "authority": {
          "type": "string"
        },
        "default_arguments_configured": {
          "type": "boolean"
        },
        "failure_alert": {
          "type": "boolean"
        },
        "nonempty_schedule_configured": {
          "type": "boolean"
        },
        "reload_deno_deps": {
          "type": "boolean"
        },
        "run_at_startup": {
          "type": "boolean"
        },
        "schedule_enabled": {
          "type": "boolean"
        },
        "source_bytes": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "source_configured": {
          "type": "boolean"
        },
        "webhook_enabled": {
          "type": "boolean"
        }
      },
      "required": [
        "source_configured",
        "source_bytes",
        "default_arguments_configured",
        "arguments_format",
        "reload_deno_deps",
        "run_at_startup",
        "webhook_enabled",
        "nonempty_schedule_configured",
        "schedule_enabled",
        "failure_alert",
        "authority",
        "argument_merge"
      ],
      "type": "object"
    },
    "DefinitionSummary2": {
      "properties": {
        "attachment": {
          "anyOf": [
            {
              "$ref": "#/$defs/AttachmentSummary"
            },
            {
              "type": "null"
            }
          ]
        },
        "auto_update": {
          "type": "boolean"
        },
        "command_present": {
          "type": "boolean"
        },
        "environment_present": {
          "type": "boolean"
        },
        "extra_args_count": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "image": {
          "$ref": "#/$defs/ImageSummary"
        },
        "mounts_present": {
          "type": "boolean"
        },
        "network": {
          "type": "string"
        },
        "redeploy_on_build": {
          "type": "boolean"
        },
        "registry_account_configured": {
          "type": "boolean"
        },
        "replicas": {
          "format": "int32",
          "type": "integer"
        }
      },
      "required": [
        "image",
        "attachment",
        "network",
        "environment_present",
        "mounts_present",
        "command_present",
        "extra_args_count",
        "registry_account_configured",
        "auto_update",
        "redeploy_on_build",
        "replicas"
      ],
      "type": "object"
    },
    "DefinitionSummary3": {
      "properties": {
        "address_configured": {
          "type": "boolean"
        },
        "auto_prune": {
          "type": "boolean"
        },
        "auto_rotate_keys": {
          "type": "boolean"
        },
        "connection_direction": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "insecure_tls": {
          "type": "boolean"
        },
        "public_key_configured": {
          "type": "boolean"
        },
        "region": {
          "type": "string"
        },
        "stats_monitoring": {
          "type": "boolean"
        }
      },
      "required": [
        "connection_direction",
        "address_configured",
        "enabled",
        "insecure_tls",
        "region",
        "public_key_configured",
        "auto_prune",
        "auto_rotate_keys",
        "stats_monitoring"
      ],
      "type": "object"
    },
    "DefinitionSummary4": {
      "properties": {
        "custom_path_configured": {
          "type": "boolean"
        },
        "environment_configured": {
          "type": "boolean"
        },
        "on_clone_configured": {
          "type": "boolean"
        },
        "on_pull_configured": {
          "type": "boolean"
        },
        "server_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "$ref": "#/$defs/SourceSummary2"
        },
        "webhook_enabled": {
          "type": "boolean"
        }
      },
      "required": [
        "source",
        "server_id",
        "custom_path_configured",
        "on_clone_configured",
        "on_pull_configured",
        "environment_configured",
        "webhook_enabled"
      ],
      "type": "object"
    },
    "DefinitionSummary5": {
      "properties": {
        "delete": {
          "type": "boolean"
        },
        "effective_delete": {
          "type": "boolean"
        },
        "include_resources": {
          "type": "boolean"
        },
        "include_user_groups": {
          "type": "boolean"
        },
        "include_variables": {
          "type": "boolean"
        },
        "managed": {
          "type": "boolean"
        },
        "match_tags": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "pending_alert": {
          "type": "boolean"
        },
        "resource_tag_filter_unrestricted": {
          "type": "boolean"
        },
        "source": {
          "$ref": "#/$defs/SourceSummary3"
        },
        "truncated": {
          "type": "boolean"
        },
        "webhook_enabled": {
          "type": "boolean"
        },
        "webhook_secret_configured": {
          "type": "boolean"
        }
      },
      "required": [
        "source",
        "managed",
        "delete",
        "effective_delete",
        "include_resources",
        "match_tags",
        "resource_tag_filter_unrestricted",
        "include_variables",
        "include_user_groups",
        "pending_alert",
        "webhook_enabled",
        "webhook_secret_configured",
        "truncated"
      ],
      "type": "object"
    },
    "DefinitionSummary6": {
      "properties": {
        "builder_type": {
          "type": "string"
        },
        "ordered_server_ids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "server_count": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "server_ids_complete": {
          "type": "boolean"
        },
        "support_limit": {
          "type": "string"
        },
        "supported": {
          "type": "boolean"
        }
      },
      "required": [
        "builder_type",
        "supported",
        "ordered_server_ids",
        "server_count",
        "server_ids_complete",
        "support_limit"
      ],
      "type": "object"
    },
    "DefinitionSummary7": {
      "properties": {
        "alert_types": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "all_alert_types": {
          "type": "boolean"
        },
        "all_resources": {
          "type": "boolean"
        },
        "enabled": {
          "type": "boolean"
        },
        "endpoint_details": {
          "type": "string"
        },
        "endpoint_type": {
          "type": "string"
        },
        "except_resources": {
          "items": {
            "$ref": "#/$defs/HistoryTarget"
          },
          "type": "array"
        },
        "maintenance_evaluation": {
          "type": "string"
        },
        "maintenance_windows": {
          "description": "Names/descriptions are omitted; clock fields are allowlisted metadata only.",
          "items": true,
          "type": "array"
        },
        "ntfy_email_configured": {
          "type": "boolean"
        },
        "projection_complete": {
          "type": "boolean"
        },
        "resources": {
          "items": {
            "$ref": "#/$defs/HistoryTarget"
          },
          "type": "array"
        }
      },
      "required": [
        "enabled",
        "endpoint_type",
        "endpoint_details",
        "ntfy_email_configured",
        "alert_types",
        "all_alert_types",
        "resources",
        "all_resources",
        "except_resources",
        "maintenance_windows",
        "projection_complete",
        "maintenance_evaluation"
      ],
      "type": "object"
    },
    "DefinitionSummary8": {
      "properties": {
        "auto_increment_version": {
          "type": "boolean"
        },
        "build_args_configured": {
          "type": "boolean"
        },
        "builder_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "configured_version": {
          "type": "string"
        },
        "image_name": {
          "type": "string"
        },
        "image_registries": {
          "items": {
            "$ref": "#/$defs/RegistrySummary"
          },
          "type": "array"
        },
        "image_tag": {
          "type": "string"
        },
        "include_commit_tag": {
          "type": "boolean"
        },
        "include_latest_tag": {
          "type": "boolean"
        },
        "include_version_tags": {
          "type": "boolean"
        },
        "pre_build_configured": {
          "type": "boolean"
        },
        "registries_complete": {
          "type": "boolean"
        },
        "registry_count": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "secret_args_configured": {
          "type": "boolean"
        },
        "source": {
          "$ref": "#/$defs/SourceSummary4"
        },
        "webhook_enabled": {
          "type": "boolean"
        }
      },
      "required": [
        "builder_id",
        "source",
        "configured_version",
        "auto_increment_version",
        "image_name",
        "image_tag",
        "image_registries",
        "registry_count",
        "registries_complete",
        "include_latest_tag",
        "include_version_tags",
        "include_commit_tag",
        "pre_build_configured",
        "build_args_configured",
        "secret_args_configured",
        "webhook_enabled"
      ],
      "type": "object"
    },
    "DefinitionSummary9": {
      "properties": {
        "authority": {
          "type": "string"
        },
        "enabled_execution_count": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "evidence_limit": {
          "type": "string"
        },
        "execution_count": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "failure_alert": {
          "type": "boolean"
        },
        "nonempty_schedule_configured": {
          "type": "boolean"
        },
        "schedule_enabled": {
          "type": "boolean"
        },
        "stage_count": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "stages": {
          "items": {
            "$ref": "#/$defs/StageSummary"
          },
          "type": "array"
        },
        "stages_complete": {
          "type": "boolean"
        },
        "webhook_enabled": {
          "type": "boolean"
        }
      },
      "required": [
        "stages",
        "stage_count",
        "execution_count",
        "enabled_execution_count",
        "stages_complete",
        "webhook_enabled",
        "nonempty_schedule_configured",
        "schedule_enabled",
        "failure_alert",
        "authority",
        "evidence_limit"
      ],
      "type": "object"
    },
    "DependentDeployment": {
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "redeploy_on_build": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "name",
        "redeploy_on_build"
      ],
      "type": "object"
    },
    "DependentEffects": {
      "properties": {
        "evidence_limit": {
          "type": "string"
        },
        "has_more": {
          "type": "boolean"
        },
        "observation_error": {
          "anyOf": [
            {
              "$ref": "#/$defs/AppError"
            },
            {
              "type": "null"
            }
          ]
        },
        "visible": {
          "items": {
            "$ref": "#/$defs/DependentDeployment"
          },
          "type": "array"
        }
      },
      "required": [
        "visible",
        "has_more",
        "observation_error",
        "evidence_limit"
      ],
      "type": "object"
    },
    "ErrorKind": {
      "description": "Stable public categories. No variant contains a raw upstream error.",
      "enum": [
        "invalid_arguments",
        "not_found",
        "ambiguous_target",
        "incomplete_resolution",
        "configuration",
        "authentication",
        "permission_denied",
        "timeout",
        "unreachable",
        "upstream",
        "invalid_response",
        "response_too_large",
        "capability_disabled",
        "unsupported_target",
        "stale_preview",
        "invalid_preview"
      ],
      "type": "string"
    },
    "FieldChange": {
      "properties": {
        "after": true,
        "after_truncated": {
          "type": "boolean"
        },
        "before": true,
        "before_truncated": {
          "type": "boolean"
        },
        "field": {
          "type": "string"
        },
        "redacted": {
          "type": "boolean"
        }
      },
      "required": [
        "field",
        "before",
        "after",
        "redacted",
        "before_truncated"
      ],
      "type": "object"
    },
    "Fields": {
      "properties": {
        "alert": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "enabled": {
          "type": "boolean"
        },
        "expression": {
          "type": "string"
        },
        "expression_truncated": {
          "type": "boolean"
        },
        "format": {
          "$ref": "#/$defs/Format"
        },
        "timezone": {
          "type": "string"
        },
        "timezone_source": {
          "type": "string"
        },
        "timezone_truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "expression",
        "expression_truncated",
        "format",
        "timezone",
        "timezone_truncated",
        "timezone_source",
        "enabled",
        "alert"
      ],
      "type": "object"
    },
    "Format": {
      "enum": [
        "cron",
        "english"
      ],
      "type": "string"
    },
    "HistoryTarget": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "description": "Stable resource ID; System uses its literal system identifier.",
          "type": "string"
        },
        "kind": {
          "$ref": "#/$defs/ResourceKind"
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "type": "object"
    },
    "ImageSummary": {
      "properties": {
        "build_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "type": "string"
        },
        "latest_build_version_at_deploy": {
          "type": "boolean"
        },
        "reference": {
          "type": [
            "string",
            "null"
          ]
        },
        "version": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "kind",
        "reference",
        "build_id",
        "version",
        "latest_build_version_at_deploy"
      ],
      "type": "object"
    },
    "Observation": {
      "properties": {
        "error": {
          "anyOf": [
            {
              "$ref": "#/$defs/AppError"
            },
            {
              "type": "null"
            }
          ]
        },
        "evidence_limit": {
          "type": "string"
        },
        "matches_expected_fields": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "pages_read": {
          "format": "uint8",
          "maximum": 255,
          "minimum": 0,
          "type": "integer"
        },
        "reported": {
          "anyOf": [
            {
              "$ref": "#/$defs/ScheduleSummary"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "$ref": "#/$defs/ObservationStatus"
        }
      },
      "required": [
        "status",
        "reported",
        "matches_expected_fields",
        "pages_read",
        "error",
        "evidence_limit"
      ],
      "type": "object"
    },
    "ObservationStatus": {
      "enum": [
        "reported",
        "not_listed_empty_expression",
        "not_found",
        "search_limit",
        "unavailable",
        "configuration_mismatch"
      ],
      "type": "string"
    },
    "Owner": {
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "$ref": "#/$defs/OwnerKind"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id",
        "name"
      ],
      "type": "object"
    },
    "OwnerKind": {
      "enum": [
        "action",
        "procedure"
      ],
      "type": "string"
    },
    "Reference": {
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "required_editor_permission": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id",
        "required_editor_permission"
      ],
      "type": "object"
    },
    "ReferenceEvidence": {
      "properties": {
        "incomplete": {
          "type": "boolean"
        },
        "limit": {
          "type": "string"
        },
        "readable": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "unavailable": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "readable",
        "unavailable",
        "incomplete",
        "limit"
      ],
      "type": "object"
    },
    "ReferenceSummary": {
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id",
        "name"
      ],
      "type": "object"
    },
    "RegistrySummary": {
      "properties": {
        "credential_reference_configured": {
          "type": "boolean"
        },
        "domain": {
          "type": "string"
        },
        "organization": {
          "type": "string"
        }
      },
      "required": [
        "domain",
        "organization",
        "credential_reference_configured"
      ],
      "type": "object"
    },
    "ResourceKind": {
      "enum": [
        "system",
        "swarm",
        "server",
        "stack",
        "deployment",
        "build",
        "repo",
        "procedure",
        "action",
        "builder",
        "alerter",
        "resource_sync"
      ],
      "type": "string"
    },
    "RuntimeObservation": {
      "properties": {
        "core_reported_image": {
          "description": "Core can fall back to desired configuration when runtime image cache is missing.",
          "type": [
            "string",
            "null"
          ]
        },
        "image_may_be_desired_fallback": {
          "type": "boolean"
        },
        "observed_at": {
          "type": "string"
        },
        "running_configuration_verified": {
          "type": "boolean"
        },
        "state": {
          "type": "string"
        }
      },
      "required": [
        "state",
        "core_reported_image",
        "image_may_be_desired_fallback",
        "running_configuration_verified",
        "observed_at"
      ],
      "type": "object"
    },
    "ScheduleSummary": {
      "properties": {
        "fields": {
          "$ref": "#/$defs/Fields"
        },
        "last_run_at": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "next_scheduled_run": {
          "format": "int64",
          "type": [
            "integer",
            "null"
          ]
        },
        "owner": {
          "$ref": "#/$defs/Owner"
        },
        "schedule_error": {
          "type": [
            "string",
            "null"
          ]
        },
        "schedule_error_truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "owner",
        "fields",
        "next_scheduled_run",
        "last_run_at",
        "schedule_error",
        "schedule_error_truncated"
      ],
      "type": "object"
    },
    "SourceKind": {
      "enum": [
        "inline",
        "git",
        "linked_repo",
        "host",
        "unconfigured"
      ],
      "type": "string"
    },
    "SourceSummary": {
      "properties": {
        "branch": {
          "type": [
            "string",
            "null"
          ]
        },
        "commit": {
          "type": [
            "string",
            "null"
          ]
        },
        "file_paths": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "inline_content_present": {
          "type": "boolean"
        },
        "kind": {
          "$ref": "#/$defs/SourceKind"
        },
        "linked_repo_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "provider": {
          "type": [
            "string",
            "null"
          ]
        },
        "repo": {
          "type": [
            "string",
            "null"
          ]
        },
        "run_directory": {
          "type": "string"
        },
        "truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "kind",
        "repo",
        "provider",
        "branch",
        "commit",
        "linked_repo_id",
        "run_directory",
        "file_paths",
        "inline_content_present",
        "truncated"
      ],
      "type": "object"
    },
    "SourceSummary2": {
      "properties": {
        "branch": {
          "type": "string"
        },
        "configured_commit": {
          "type": [
            "string",
            "null"
          ]
        },
        "credential_reference_configured": {
          "type": "boolean"
        },
        "https": {
          "type": "boolean"
        },
        "provider": {
          "type": "string"
        },
        "repo": {
          "type": "string"
        }
      },
      "required": [
        "repo",
        "provider",
        "branch",
        "configured_commit",
        "https",
        "credential_reference_configured"
      ],
      "type": "object"
    },
    "SourceSummary3": {
      "properties": {
        "git": {
          "anyOf": [
            {
              "$ref": "#/$defs/SourceSummary2"
            },
            {
              "type": "null"
            }
          ]
        },
        "inline_content_configured": {
          "type": "boolean"
        },
        "kind": {
          "type": "string"
        },
        "linked_repo_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "resource_path_count": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "resource_paths": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "truncated": {
          "type": "boolean"
        }
      },
      "required": [
        "kind",
        "linked_repo_id",
        "git",
        "resource_paths",
        "resource_path_count",
        "inline_content_configured",
        "truncated"
      ],
      "type": "object"
    },
    "SourceSummary4": {
      "properties": {
        "configured_branch": {
          "type": "string"
        },
        "configured_commit": {
          "type": [
            "string",
            "null"
          ]
        },
        "configured_https": {
          "type": "boolean"
        },
        "credential_reference_configured": {
          "type": "boolean"
        },
        "custom_build_path_configured": {
          "type": "boolean"
        },
        "custom_dockerfile_path_configured": {
          "type": "boolean"
        },
        "kind": {
          "type": "string"
        },
        "linked_repo_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "provider": {
          "type": "string"
        },
        "repo": {
          "type": "string"
        },
        "selector_evidence": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "selector_evidence",
        "linked_repo_id",
        "repo",
        "provider",
        "configured_branch",
        "configured_https",
        "configured_commit",
        "credential_reference_configured",
        "custom_build_path_configured",
        "custom_dockerfile_path_configured"
      ],
      "type": "object"
    },
    "StageSummary": {
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "execution_count": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "executions": {
          "items": {
            "$ref": "#/$defs/StepSummary"
          },
          "type": "array"
        },
        "executions_complete": {
          "type": "boolean"
        },
        "index": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "index",
        "name",
        "enabled",
        "executions",
        "execution_count",
        "executions_complete"
      ],
      "type": "object"
    },
    "StepSummary": {
      "properties": {
        "admin_only_to_configure": {
          "type": "boolean"
        },
        "arguments_configured": {
          "type": "boolean"
        },
        "dynamic_targets": {
          "type": "boolean"
        },
        "enabled": {
          "type": "boolean"
        },
        "index": {
          "format": "uint",
          "minimum": 0,
          "type": "integer"
        },
        "operation": {
          "type": "string"
        },
        "reference": {
          "anyOf": [
            {
              "$ref": "#/$defs/Reference"
            },
            {
              "type": "null"
            }
          ]
        },
        "writable": {
          "type": "boolean"
        }
      },
      "required": [
        "index",
        "enabled",
        "operation",
        "reference",
        "arguments_configured",
        "admin_only_to_configure",
        "dynamic_targets",
        "writable"
      ],
      "type": "object"
    }
  }
}

Operator guides

All built-in tools