You can use the Dynatrace CLI (dtctl) as a platform control tool in agentic Dynatrace Assist to ask about your environment’s setup and content via UI while preserving your environment’s context.
When you ask Dynatrace Assist about your environment, it translates your question into one or more dtctl commands, runs them with your permissions, and summarizes the result in the chat. The following sections describe which permissions the commands require, how a command is built, and which commands are available.
Platform control has read-only access and respects your existing permissions.
dtctl is available to you by default and doesn't require specific permissions. However, depending on the command you want to execute, additional permissions might be required. For example, for platform control to fetch your workflows, you need the automation:workflows:read permission.
An executed dtctl command follows the <Verb> <Resource> <Flags> ... syntax, for example, get notebooks --mine.
Dynatrace Assist support is limited to read-only verbs. This means that dtctl in Dynatrace Assist can't run any commands that might change or otherwise affect your environment. Read-only commands consist of the following verbs:
commandsdescribefindgethelphistorylogsopenqueryverifyexec, limited to analyzer and copilot resourcesThe following table lists the dtctl commands available in Dynatrace Assist.
| Verb | Resource | Permissions |
|---|---|---|
describe | analyzer | davis:analyzers:read |
describe | anomaly-detector | settings:objects:readsettings:schemas:read |
describe | app | app-engine:apps:run |
describe | bucket | storage:bucket-definitions:read |
describe | dashboard | document:documents:read |
describe | document | document:documents:read |
describe | extension | extensions:definitions:read |
describe | intent | app-engine:apps:run |
describe | lookup | storage:files:read |
describe | notebook | document:documents:read |
describe | segment | storage:filter-segments:read |
describe | settings | app-settings:objects:readsettings:objects:readsettings:schemas:read |
describe | settings-schema | settings:schemas:read |
describe | slo | slo:objective-templates:readslo:slos:read |
describe | workflow | automation:workflows:read |
describe | workflow-execution | automation:workflows:read |
get | analyzer | davis:analyzers:read |
get | anomaly-detector | settings:objects:read |
get | app | app-engine:apps:run |
get | bucket | storage:bucket-definitions:read |
get | dashboard | document:documents:read |
get | document | document:documents:read |
get | extension | extensions:definitions:read |
get | intent | app-engine:apps:run |
get | lookup | storage:files:read |
get | notebook | document:documents:read |
get | segment | storage:filter-segments:read |
get | settings | app-settings:objects:readsettings:objects:read |
get | settings-schema | settings:schemas:read |
get | slo | slo:objective-templates:readslo:slos:read |
get | wfe-task-result | automation:workflows:read |
get | workflow | automation:workflows:read |
get | workflow-execution | automation:workflows:read |
history | dashboard | document:documents:read |
history | document | document:documents:read |
history | notebook | document:documents:read |
logs | workflow-execution | automation:workflows:read |
find | intent | app-engine:apps:run |
open | intent | app-engine:apps:run |
query | — | The required permissions depend on the data that the DQL query reads. |
verify | query | The required permissions depend on the data that the DQL query reads. |
exec | analyzer | davis:analyzers:executeAdditional permissions depend on the data that the analyzer reads. |
exec | copilot | Permissions depend on the skill you want to use. Each specific skill requires its own davis-copilot:<skill>:execute permission. |
commands | — | No specific permissions required |
help | — | No specific permissions required |
The following flags are available for the commands listed in the previous table. There are two types of flags:
| Flag | Description |
|---|---|
--output / -o | Output format: json, yaml, table, or csv. |
--limit | Maximum number of items to return. |
--sort | Fields to sort by, separated by commas. Prefix a field with - to sort in descending order. |
--chunk-size | Number of items to fetch per request. |
--jq | A jq filter applied to the command result. |
| Flag | Description |
|---|---|
--app | Show only the intents of the specified app. |
--name | Filter by name. |
--filter | Filter the list. The syntax depends on the resource. For get workflow, it searches workflows by title. For get settings and get anomaly-detector, it's a settings filter expression, for example value.<field> <op> <value>. |
--schema | Schema ID of the settings to list. Required for get settings. |
--enabled | Show only enabled anomaly detectors. Use --enabled=false to show only disabled ones. |
--mine | Show only the resources you own. |
--types | List the distinct document types with the number of documents of each type. |
--type | Show only the resources of the specified type. |
--task / -t | Name of the workflow task. Required for get wfe-task-result. For logs workflow-execution, returns the log of that task. |
--tasks | Return the logs of every task of the workflow execution. |
--all / -a | Return the execution log and the logs of every task. |
--workflow / -w | Show only executions of the specified workflows. Repeat the flag or separate values with commas to specify more than one. |
--state | Show only executions in the specified state, for example SUCCESS, ERROR, or PAUSED. Repeat the flag or separate values with commas to specify more than one. |
--trigger | Show only executions started by the specified trigger type. Repeat the flag or separate values with commas to specify more than one. |
--started-since | Show only executions started after the specified date and time. A value without a time zone is read as UTC. |
--started-until | Show only executions started before the specified date and time. A date without a time covers the whole day. |
--data | Data to pass to the intent, as comma-separated key=value pairs. |
--data-file | File with the data to pass to the intent, as a JSON object. |
--from, --to | Start and end of the query timeframe. Accept relative values, such as now-2h, and ISO 8601 timestamps. |
--timeout | Maximum time to wait for the result. |
--preview | Enable preview mode for the query. |
--variable | Value for a segment variable used in the query. |
--metadata | Return query metadata. To select specific metadata fields, specify them as a comma-separated list, for example --metadata=field1,field2. |
--canonical | Also return the canonical form of the query. |
--fail-on-warn | Treat warnings as failures. |
--locale | Locale used to verify the query. |
--query | For exec analyzer, a DQL query (timeseries shorthand) used as the analyzer input. For exec copilot, the text sent to the skill. |
--collections | Document collections to search, for example notebooks,dashboards. Only for exec copilot document-search. |
--exclude | IDs of documents to exclude from the results. Only for exec copilot document-search. |
With platform control available in Dynatrace Assist, you can ask Dynatrace Assist questions about your environment's setup and content, as well as: