DESCRIBE AGENT

statementpartialAI & ML

docs.snowflake.com ↗

Object: AGENT

Describes the properties of a Cortex Agent. DESCRIBE can be abbreviated to DESC.

Syntax

supportedpartialnot supportednot scored

{ DESC | DESCRIBE } [ AS RESOURCE ] AGENT <name>

Parameters

NameRequiredDescription
AS RESOURCEReturns the agent definition as a resource in JSON format, rather than as the columns described in Output.
nameSpecifies the name for the agent to describe. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive. For more information, see Identifier requirements.

Usage notes

Output

The command output provides Cortex Agent properties and metadata in the following columns: Column | Description name | Name of the agent. database_name | Database containing the agent. schema_name | Schema containing the agent. owner | Owner role of the agent. comment | Comment text for the agent. profile | Agent profile JSON (display_name, avatar, color). agent_spec | Complete JSON specification of the agent. For a secure agent, this column returns NULL when the owner role is not activated in the session. created_on | Timestamp when the agent was created.

Access control requirements

A role used to execute this SQL command must have at least one of the following privileges at a minimum: Privilege | Object | Notes Any one of these privileges: OWNERSHIP, USAGE, MODIFY, or MONITOR | Agent | Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

Known gaps

Parts not fully supported, and recorded divergences from Snowflake.

See also

Referenced by