get_variable
Inspect one exact case-sensitive variable name. Secret values and masked text/length are omitted even for administrators. Ordinary values are included only when at most 1024 bytes, control-free, without URLs, configured credentials or common credential markers; otherwise omit the whole value. Complete bounded name lookup, no mutation or secret reveal.
Availability
Available under the default capability policy
The instance’s tool selection and upstream Core permissions also apply. Some inputs require additional grants.
Effect annotations
readOnlyHint—truedestructiveHint—falseidempotentHint—true
Inputs
The registered schema gives field types, alternatives and declared bounds. The description and operator guides also cover checks applied at runtime.
name- Required ·
type "string"
Show input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
}Output
The registered output schema covers structured results and tool errors.
VariableViewdescription,description_truncated,is_secret,name,value,value_statusAppErrorcandidates,correction,field,kind,message,operation,status
Show output JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"$ref": "#/$defs/VariableView"
},
{
"$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"
},
"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"
}
}
}