preview_access_change
Prepare one typed private access preview: service-user create/description, user base/admin/delete, group create/rename/delete/additive member/everyone, or direct grant on one explicit resource or resource type. Configuration-edit and actual Core admin/super-admin rules. Show broad scope and preserved specifics; complete raw auth/grant baselines stay private in the shared ten-minute single-use store. No write or credential issuance.
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—truedestructiveHint—falseidempotentHint—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
Show input JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"change": {
"$ref": "#/$defs/Change"
}
},
"required": [
"change"
],
"$defs": {
"Change": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"description": {
"default": "",
"type": "string"
},
"kind": {
"const": "create_service_user",
"type": "string"
},
"username": {
"type": "string"
}
},
"required": [
"kind",
"username"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"description": {
"type": "string"
},
"kind": {
"const": "set_service_user_description",
"type": "string"
},
"target": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"kind",
"target",
"description"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"create_builds": {
"type": "boolean"
},
"create_servers": {
"type": "boolean"
},
"enabled": {
"type": "boolean"
},
"kind": {
"const": "set_user_base",
"type": "string"
},
"target": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"kind",
"target"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"admin": {
"type": "boolean"
},
"kind": {
"const": "set_user_admin",
"type": "string"
},
"target": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"kind",
"target",
"admin"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "delete_user",
"type": "string"
},
"target": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"kind",
"target"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "create_group",
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"kind",
"name"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "rename_group",
"type": "string"
},
"name": {
"type": "string"
},
"target": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"kind",
"target",
"name"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "delete_group",
"type": "string"
},
"target": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"kind",
"target"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"group": {
"$ref": "#/$defs/DetailInput"
},
"kind": {
"const": "set_group_member",
"type": "string"
},
"present": {
"type": "boolean"
},
"user": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"kind",
"group",
"user",
"present"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"everyone": {
"type": "boolean"
},
"kind": {
"const": "set_group_everyone",
"type": "string"
},
"target": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"kind",
"target",
"everyone"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "change_permission",
"type": "string"
},
"patch": {
"$ref": "#/$defs/GrantPatch"
},
"scope": {
"$ref": "#/$defs/PermissionScope"
},
"subject": {
"$ref": "#/$defs/Subject"
}
},
"required": [
"kind",
"subject",
"scope",
"patch"
],
"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"
},
"GrantPatch": {
"additionalProperties": false,
"properties": {
"add_specific": {
"default": [],
"items": {
"$ref": "#/$defs/Specific"
},
"type": "array"
},
"level": {
"$ref": "#/$defs/Level"
},
"remove_specific": {
"default": [],
"items": {
"$ref": "#/$defs/Specific"
},
"type": "array"
}
},
"type": "object"
},
"Kind": {
"enum": [
"server",
"swarm",
"stack",
"deployment",
"build",
"repo",
"builder",
"alerter",
"procedure",
"action",
"resource_sync"
],
"type": "string"
},
"Level": {
"enum": [
"none",
"read",
"execute",
"write"
],
"type": "string"
},
"PermissionScope": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "resource",
"type": "string"
},
"resource_kind": {
"$ref": "#/$defs/Kind"
},
"target": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"kind",
"resource_kind",
"target"
],
"type": "object"
},
{
"additionalProperties": false,
"description": "Explicitly covers all current/future resources of this type.",
"properties": {
"kind": {
"const": "resource_type",
"type": "string"
},
"resource_kind": {
"$ref": "#/$defs/Kind"
}
},
"required": [
"kind",
"resource_kind"
],
"type": "object"
}
]
},
"Specific": {
"enum": [
"terminal",
"attach",
"inspect",
"logs",
"processes"
],
"type": "string"
},
"Subject": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "user",
"type": "string"
},
"target": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"kind",
"target"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"kind": {
"const": "group",
"type": "string"
},
"target": {
"$ref": "#/$defs/DetailInput"
}
},
"required": [
"kind",
"target"
],
"type": "object"
}
]
}
}
}Output
The registered output schema covers structured results and tool errors.
AccessResultacknowledgement_valid,action,after,before,broad_scope,cleanup,effects,observation_error,outcome,preview_id,requires_super_admin,resource,saved_state_matches,submission_error,writes_submittedAppErrorcandidates,correction,field,kind,message,operation,status
Show output JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"$ref": "#/$defs/AccessResult"
},
{
"$ref": "#/$defs/AppError"
}
],
"$defs": {
"AccessResult": {
"properties": {
"acknowledgement_valid": {
"type": "boolean"
},
"action": {
"type": "string"
},
"after": {
"anyOf": [
{
"$ref": "#/$defs/EntityView"
},
{
"type": "null"
}
]
},
"before": {
"anyOf": [
{
"$ref": "#/$defs/EntityView"
},
{
"type": "null"
}
]
},
"broad_scope": {
"type": "boolean"
},
"cleanup": {
"anyOf": [
{
"$ref": "#/$defs/CleanupReport"
},
{
"type": "null"
}
]
},
"effects": {
"items": {
"type": "string"
},
"type": "array"
},
"observation_error": {
"anyOf": [
{
"$ref": "#/$defs/AppError"
},
{
"type": "null"
}
]
},
"outcome": {
"type": "string"
},
"preview_id": {
"type": [
"string",
"null"
]
},
"requires_super_admin": {
"type": "boolean"
},
"resource": {
"$ref": "#/$defs/ConfigurationTarget"
},
"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",
"resource",
"before",
"after",
"broad_scope",
"requires_super_admin",
"preview_id",
"writes_submitted",
"acknowledgement_valid",
"saved_state_matches",
"submission_error",
"observation_error",
"cleanup",
"effects"
],
"type": "object"
},
"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"
},
"CleanupReport": {
"properties": {
"credential_cleanup": {
"type": "string"
},
"direct_permission_records_remaining": {
"format": "uint",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"errors": {
"items": {
"$ref": "#/$defs/AppError"
},
"type": "array"
},
"evidence_limit": {
"type": "string"
},
"group_reference_count": {
"format": "uint",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"observations_complete": {
"type": "boolean"
},
"visible_group_references": {
"items": {
"$ref": "#/$defs/SubjectView"
},
"type": "array"
}
},
"required": [
"visible_group_references",
"group_reference_count",
"direct_permission_records_remaining",
"observations_complete",
"credential_cleanup",
"errors",
"evidence_limit"
],
"type": "object"
},
"ConfigurationTarget": {
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"kind",
"id",
"name"
],
"type": "object"
},
"EntityView": {
"oneOf": [
{
"properties": {
"details": {
"$ref": "#/$defs/UserView"
},
"kind": {
"const": "user",
"type": "string"
}
},
"required": [
"kind",
"details"
],
"type": "object"
},
{
"properties": {
"details": {
"$ref": "#/$defs/GroupView"
},
"kind": {
"const": "group",
"type": "string"
}
},
"required": [
"kind",
"details"
],
"type": "object"
},
{
"properties": {
"details": {
"properties": {
"direct_record_exists": {
"type": "boolean"
},
"grant": {
"$ref": "#/$defs/GrantView"
},
"scope": {
"$ref": "#/$defs/ScopeView"
},
"subject": {
"$ref": "#/$defs/SubjectView"
}
},
"required": [
"subject",
"scope",
"grant",
"direct_record_exists"
],
"type": "object"
},
"kind": {
"const": "permission",
"type": "string"
}
},
"required": [
"kind",
"details"
],
"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"
},
"GrantView": {
"properties": {
"complete": {
"type": "boolean"
},
"level": {
"$ref": "#/$defs/Level"
},
"specific": {
"items": {
"$ref": "#/$defs/Specific"
},
"type": "array"
},
"unknown_specific_count": {
"format": "uint",
"minimum": 0,
"type": "integer"
}
},
"required": [
"level",
"specific",
"unknown_specific_count",
"complete"
],
"type": "object"
},
"GroupView": {
"properties": {
"direct_type_grants": {
"items": {
"$ref": "#/$defs/TypeGrant"
},
"type": "array"
},
"everyone": {
"type": "boolean"
},
"grants_complete": {
"type": "boolean"
},
"id": {
"type": [
"string",
"null"
]
},
"member_count": {
"format": "uint",
"minimum": 0,
"type": "integer"
},
"member_ids": {
"items": {
"type": "string"
},
"type": "array"
},
"members_complete": {
"type": "boolean"
},
"name": {
"type": "string"
},
"visibility_limit": {
"type": "string"
}
},
"required": [
"id",
"name",
"everyone",
"member_ids",
"member_count",
"members_complete",
"direct_type_grants",
"grants_complete",
"visibility_limit"
],
"type": "object"
},
"Kind": {
"enum": [
"server",
"swarm",
"stack",
"deployment",
"build",
"repo",
"builder",
"alerter",
"procedure",
"action",
"resource_sync"
],
"type": "string"
},
"Level": {
"enum": [
"none",
"read",
"execute",
"write"
],
"type": "string"
},
"ScopeView": {
"oneOf": [
{
"properties": {
"id": {
"type": "string"
},
"kind": {
"const": "resource",
"type": "string"
},
"name": {
"type": [
"string",
"null"
]
},
"resource_kind": {
"$ref": "#/$defs/Kind"
}
},
"required": [
"kind",
"resource_kind",
"id",
"name"
],
"type": "object"
},
{
"properties": {
"kind": {
"const": "resource_type",
"type": "string"
},
"resource_kind": {
"$ref": "#/$defs/Kind"
}
},
"required": [
"kind",
"resource_kind"
],
"type": "object"
}
]
},
"Specific": {
"enum": [
"terminal",
"attach",
"inspect",
"logs",
"processes"
],
"type": "string"
},
"SubjectView": {
"properties": {
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"kind",
"id",
"name"
],
"type": "object"
},
"TypeGrant": {
"properties": {
"grant": {
"$ref": "#/$defs/GrantView"
},
"resource_kind": {
"$ref": "#/$defs/Kind"
}
},
"required": [
"resource_kind",
"grant"
],
"type": "object"
},
"UserView": {
"properties": {
"admin": {
"type": "boolean"
},
"authentication_details": {
"type": "string"
},
"create_builds": {
"type": "boolean"
},
"create_servers": {
"type": "boolean"
},
"direct_type_grants": {
"items": {
"$ref": "#/$defs/TypeGrant"
},
"type": "array"
},
"enabled": {
"type": "boolean"
},
"grants_complete": {
"type": "boolean"
},
"id": {
"type": [
"string",
"null"
]
},
"service_description": {
"type": "string"
},
"service_user": {
"type": "boolean"
},
"super_admin": {
"type": "boolean"
},
"username": {
"type": "string"
}
},
"required": [
"id",
"username",
"service_user",
"enabled",
"admin",
"super_admin",
"create_servers",
"create_builds",
"direct_type_grants",
"grants_complete",
"authentication_details",
"service_description"
],
"type": "object"
}
}
}