Class SaveToolTool

java.lang.Object
com.axelor.ai.tool.builder.SaveToolTool
All Implemented Interfaces:
SystemTool<SaveToolTool.Input>

public class SaveToolTool extends Object implements SystemTool<SaveToolTool.Input>
Creates or updates a tool by code: a script, an HTTP endpoint, an action, or a system tool the application registers.

A new tool is saved disabled and asking for approval (invariant 3): an administrator reads its script or endpoint and enables it. An existing one keeps its state, so rewriting an enabled script puts it live once the save is approved — the card says so. Secrets are never an input (invariant 4): a header or query parameter that carries a credential must reference one as ${secret.NAME}, and the administrator fills it on the tool's form. MCP tools come from their server and client tools from the browser: neither is written here.