Repository navigation
Description
Idea
Organizations want to integrate their internal services and databases into AI Studio, for example an internal search, a ticket system, or a project database. Today, our team builds every tool for tool calling into AI Studio itself, so organizations have no way to add their own.
Tool plugins close this gap. They become a new plugin type next to language, assistant, configuration, and theme plugins. A tool plugin defines one or more tools. Each tool brings its name, its description, and its parameters for the model, plus the logic that runs when the model calls it.
Requirements
- Enterprise rollout: Like every other plugin type, IT departments can roll out tool plugins via the enterprise configuration server.
- Tool selection: Tools from plugins appear in the tool selection like built-in tools, and users can enable or disable them the same way.
- Confidence: Like built-in tools, a plugin tool states how sensitive its data is. AI Studio sends its results only to providers that meet this confidence level.
- Prompt injection: Results from plugin tools are untrusted content and have to pass the prompt injection check like every other tool result.
Approach
The plan was approved on 2026-10-12. The series of pull requests spans more than one release, so everything visible stays behind the preview feature "Tool Plugins" at the prototype stage until the series is complete.
-
A tool plugin defines several tool collections. A collection can bring instructions for the system prompt, e.g., what a database contains and which columns matter.
-
Users enter credentials such as a username and password in AI Studio, which keeps them in the keyring of the operating system. The Lua code of a plugin never sees them; AI Studio inserts them where they are needed.
-
Lua code has no access of its own to files, the network, or programs. AI Studio offers these capabilities and enforces their limits:
- SQL databases (Microsoft SQL Server first),
- HTTP(S) web services,
- local command-line programs.
-
A plugin declares which capabilities it needs. Before it runs, a dialog shows what the plugin can do: which servers it reaches, where credentials go, whether it can change data, and which programs it starts.
-
Plugins can come from every source:
- rolled out by the IT department,
- approved by the organization by hash,
- installed locally by departments and by private users who share plugins with each other.
Organizations can restrict what locally installed plugins may do.
-
Tools that change data, e.g., with SQL
UPDATEorDELETE, ask users for approval before they run. -
Each plugin has its own namespace, so tools from different plugins never overwrite each other.
Planned pull requests
- Groundwork in the tool system: a tool registry that can be rebuilt at runtime, settings shared by the tools of a plugin, and system prompt instructions per collection; MCP (Integration of MCP #63) needs this as well
- Tool plugins: the new plugin type, the consent dialog, and the trust model; tools written in Lua only at first
- Microsoft SQL Server, reading
- HTTP(S) web services, reading
- Importing, exporting, and sharing tool plugins
- Changing data through SQL and HTTP, with approval by users; uses the approvals of the email tools that change mailboxes (Agent mode #76)
- Local command-line programs
- Security audit of tool plugins by an LLM
Related
- Add plugin support: Add plugin support #14
- Integration of MCP: Integration of MCP #63
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDev Planning
Activity