Back to Directus

Tools

content/guides/11.ai/1.assistant/3.tools.md

latest4.2 KB
Original Source

AI Assistant uses tools to perform actions on your behalf. Each tool handles a specific type of operation within Directus.

::callout{icon="material-symbols:security" color="info"} Tools use your existing user permissions. Users without admin access won't see Admin Only tools. If you can't access a collection or perform an action in Directus, the AI can't either. ::

System Tools

These tools interact with your Directus instance via API to manage content, files, and schema.

ToolDescription
:icon{name="material-symbols:database-search-outline" class="text-muted"} SchemaExplore collections, fields, and relationships (read-only)
:icon{name="material-symbols:box-outline" class="text-muted"} ItemsCreate, read, update, and delete items in your collections
:icon{name="material-symbols:folder-outline" class="text-muted"} FilesManage file metadata, import from URLs, organize uploads
:icon{name="material-symbols:folder-open-outline" class="text-muted"} FoldersCreate and organize folder structures for files
:icon{name="material-symbols:play-arrow-outline" class="text-muted"} Trigger FlowExecute manual flows on demand

Admin Only

::callout{icon="material-symbols:warning" color="warning"} Be careful when using these tools as deleting or modifying schema can result in data loss. ::

ToolDescription
:icon{name="material-symbols:database-outline" class="text-muted"} CollectionsCreate, modify, and delete collections (database tables)
:icon{name="material-symbols:variable-add-outline" class="text-muted"} FieldsAdd, configure, and remove fields within collections
:icon{name="material-symbols:hub-outline" class="text-muted"} RelationsSet up relationships between collections
:icon{name="material-symbols:bolt-outline" class="text-muted"} FlowsCreate and manage automation workflows
:icon{name="material-symbols:offline-bolt-outline" class="text-muted"} OperationsConfigure individual steps within flows

Page Context Tools

::callout{icon="material-symbols:lightbulb" color="primary"} Page Context tools let the AI work directly with what's on your screen. They are only available when editing data and may not be available on all pages. Approval modes cannot be changed for Page Context tools. ::

ToolDescription
Read Form ValuesRead current field values from the form on screen
Set Form ValuesUpdate field values on the current form

Tool Behavior

Approval Modes

Each tool can be configured with one of three approval modes:

ModeBehavior
:icon{name="material-symbols:check" class="text-success"} Always AllowedExecute immediately without asking
:icon{name="material-symbols:approval-delegation" class="text-warning"} Needs ApprovalShow approval dialog before executing (default)
:icon{name="material-symbols:block" class="text-error"} DisabledTool is hidden from AI and not loaded into context

Tool approval settings are stored locally in your browser and are unique to you. They won't sync to your Directus instance or affect other users.

::callout{icon="material-symbols:lightbulb" color="primary"} Disable unused tools to reduce costs. Disabled tools are not sent to the AI provider, reducing token usage. If you only manage content, disable schema and flow tools. ::

Default Settings

All tools default to Ask mode. Nothing executes without your explicit approval until you change the settings.

Configuring Tools

  1. Open the settings menu (gear icon) in the chat header
  2. Search for specific tools
  3. Click a tool and select an approval mode from the dropdown
  4. Settings persist in your browser

Next Steps

::card-group

:::card{title="Tips & Best Practices" icon="material-symbols:lightbulb" to="/guides/ai/assistant/tips"} Get the most out of AI Assistant. :::

:::card{title="Security" icon="material-symbols:security" to="/guides/ai/assistant/security"} Access control and data protection. :::

::