az agent tool env

Inspect the current CLI environment for external AI-tool integration.

Commands

Name Description Type Status
az agent tool env show

Return a JSON snapshot of the current CLI environment (azclips version, auth context, subscription, tenant, shell, working directory).

Core Preview

az agent tool env show

Preview

Return a JSON snapshot of the current CLI environment (azclips version, auth context, subscription, tenant, shell, working directory).

az agent tool env show returns the same environment snapshot the internal agent gathers before proposing a plan. Fields include azclips version, OS, active subscription and tenant IDs, current working directory, and shell. Intended for external AI tools (Copilot CLI skills, Claude Code) that need to reason about the user's Azure context without spawning a full agent conversation.

az agent tool env show

Examples

Capture the current environment

az agent tool env show
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h -help -? --?

Show help for the command or group and exit.

--no-cache

Bypass the extension discovery cache and reload extensions from disk.

--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, table, tsv, yaml, yamlc
--query

JMESPath query string to filter/project the command result before rendering.