Skip to content

apply_variable_change

Consume a matching private variable preview, recheck authority/full raw baseline and submit at most one typed write with independent read-back. Configuration-edit plus enabled Core administrator; ordinary create/value/delete also need operate because future automatic consumers can change. Description-only edits may target secrets. No secret values/reclassification, no implicit execution/delivery, no automatic retry; lost acknowledgements stay uncertain even when saved state matches.

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 — false
  • destructiveHint — true
  • idempotentHint — false

Inputs

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

change
Required · Schema Change
preview_id
Required · type "string"
Show input JSON Schema
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "change": {
      "$ref": "#/$defs/Change"
    },
    "preview_id": {
      "type": "string"
    }
  },
  "required": [
    "change",
    "preview_id"
  ],
  "$defs": {
    "Change": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "Always creates is_secret=false; no secret provisioning or classification field.",
          "properties": {
            "description": {
              "default": "",
              "type": "string"
            },
            "kind": {
              "const": "create_ordinary",
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "value": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "name",
            "value"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "set_ordinary_value",
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "value": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "name",
            "value"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "The only supported secret-entry mutation. Omitted values remain private.",
          "properties": {
            "description": {
              "type": "string"
            },
            "kind": {
              "const": "set_description",
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "name",
            "description"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "kind": {
              "const": "delete_ordinary",
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "name"
          ],
          "type": "object"
        }
      ]
    }
  }
}

Output

The registered output schema covers structured results and tool errors.

VariableResult
acknowledgement_valid, action, after, before, effects, observation_error, outcome, preview_id, saved_state_matches, submission_error, 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/VariableResult"
    },
    {
      "$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"
    },
    "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"
    },
    "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"
    },
    "VariableResult": {
      "properties": {
        "acknowledgement_valid": {
          "type": "boolean"
        },
        "action": {
          "type": "string"
        },
        "after": {
          "anyOf": [
            {
              "$ref": "#/$defs/VariableView"
            },
            {
              "type": "null"
            }
          ]
        },
        "before": {
          "anyOf": [
            {
              "$ref": "#/$defs/VariableView"
            },
            {
              "type": "null"
            }
          ]
        },
        "effects": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "observation_error": {
          "anyOf": [
            {
              "$ref": "#/$defs/AppError"
            },
            {
              "type": "null"
            }
          ]
        },
        "outcome": {
          "type": "string"
        },
        "preview_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "saved_state_matches": {
          "type": "boolean"
        },
        "submission_error": {
          "anyOf": [
            {
              "$ref": "#/$defs/AppError"
            },
            {
              "type": "null"
            }
          ]
        },
        "writes_submitted": {
          "format": "uint8",
          "maximum": 255,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "action",
        "outcome",
        "preview_id",
        "before",
        "after",
        "writes_submitted",
        "acknowledgement_valid",
        "saved_state_matches",
        "observation_error",
        "submission_error",
        "effects"
      ],
      "type": "object"
    },
    "VariableView": {
      "properties": {
        "description": {
          "type": "string"
        },
        "description_truncated": {
          "type": "boolean"
        },
        "is_secret": {
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "value": {
          "description": "Only get_variable and change previews include an ordinary value that passes\nthe documented projection; secret fields are absent, never masked text.",
          "type": [
            "string",
            "null"
          ]
        },
        "value_status": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "description",
        "description_truncated",
        "is_secret",
        "value_status"
      ],
      "type": "object"
    }
  }
}

Operator guides

All built-in tools