Script actions
Since 26.1
This feature is available in Lite, Enterprise, and Ultimate editions only.
AI script actions let you access and retrieve scripts from your workspace through natural language. When you ask DBeaver about a script, the assistant reads it and returns the result directly in chat.
To use the actions:
- Open AI chat on the connection you want to work with
-
Write a prompt that describes the script you want to retrieve or inspect
Note
To use an action, make sure it's turned on in the Tools & MCP settings.
-
AI reads your request and returns the matching script content
Available actions¶
Use these actions to retrieve scripts by name or get the contents of the script you're currently editing.
| Action | What it does | Example |
|---|---|---|
| Get the current script source code | Returns the source code of the script or DDL currently open in the SQL Editor. | "What does thе current script do?" |
| List script names | Returns the identifiers of available scripts, optionally filtered by folder or active connection. | "what scripts do I have for the current connection?" |
| Get a script by name | Returns the full contents of a script by its identifier. | "show me the contents of cleanup_orders script" |