Wiki / Tools & Security

Tools & Security

Apis AI gives the AI controlled access to your system. You decide what is allowed: shared folders, a terminal sandbox and a confirmation requirement for deletions.

Internal Tools

Besides MCP servers, Apis AI ships its own tools that the AI can use in the tool loop:

CategoryTools
File systemlocal_* – read, write and edit files in shared folders. Every edit is shown in the chat as a Git-style diff. An argument that is not a valid path (for example a wildcard such as *.kt) is answered with a readable error inside the tool result – the model can correct itself and switch to local_find_files/local_grep – instead of aborting the whole turn.
Shellshell_cmd – execute commands, by default inside the sandbox.
Task managementtask_* – create and manage tasks.
Chartscreate_chart – create diagrams in chat.
Mathmath_resolve – evaluate mathematical expressions (plain or LaTeX), single or as a batch with a table. Variables: an entry name = expression defines a value for all following entries of the same batch, so intermediate results can be reused (h = 21/cos(15*pi/180)^2, then h/2); the scope does not survive the batch. Polynomials in free variables are expanded symbolically ((x+2)*(x+1)^3 → x^4 + 5*x^3 + 9*x^2 + 7*x + 2). Every result is labelled exact (integer/fraction), float (approximation), symbolic (exact polynomial in free variables), undefined (domain) or NaN, so a guessed value is never mistaken for a computed one. Poles such as tan(pi/2), sec(pi/2), cot(0) or csc(0) are reported as undefined instead of a huge float. Equations, solving for a variable and functions of free variables (sin(x)) are not supported and return an explicit error rather than an approximation. The resolver is dependency-free and computed inside the app – no external CAS.
Screenlist_screens, capture_screenshot – list monitors and take a screenshot. Only offered to vision-capable models in chat (see Images & Screenshots).
Scriptsscript_list, script_run – run shared scripts.

In workflow nodes these categories can be switched off individually (see Workflows). The same applies per model: on the card Tool Selection per Model you decide which MCP servers and which of these groups a model receives at all – see Settings.

Shared Folders

The AI may only access folders that you add under Settings, then System & Prompts, then Shared folders – or that you release ad hoc in the chat with @. Clicking Add folder (home) starts in the home directory.

An @ reference in the chat is a second, deliberately temporary way of sharing: pick a folder in the suggestion list and it is valid for this conversation only (see Linking Files (@)). It is stored with the chat, never written to your settings, and gone for every other conversation. Paths you type out in full (@/home/…, @~/…, @C:\…) count the same way.

Security Note Only share folders the AI should actually access. Within a shared folder the AI may read and – depending on the setting – also write and delete.

Deleting Files

The Can delete files on its own option controls the behavior:

Terminal Sandbox

The terminal sandbox is active by default. Then the AI only executes allowed, read-only commands via shell_cmd. If you disable it, the AI gets full system access with arbitrary commands.

Every command has a time limit – 30 seconds by default. You can change it under Settings → Parameters (1–1800 seconds); it applies to sandboxed and full-access mode alike. This value is the ceiling: for a single call the AI may ask for a shorter limit with the timeout_seconds argument, never for a longer one. When a command exceeds the limit, it is terminated together with its child processes, the output read so far is returned instead of being discarded, and the call is reported as a separate timeout error – so a hanging command is not mistaken for a failing one.

Security Floor Destructive commands (e.g. rm, chmod, sudo) and interpreters (sh, python …) are never allowed in the sandbox – not even via the list. For such commands you would have to deliberately disable the sandbox.

Whitelist / Blacklist

As long as the sandbox is active, a command list controls what is allowed (one command per line):

ModeBehavior
WhitelistOnly the listed, read-only commands are allowed – for tight sandboxes.
BlacklistAll individual commands except the listed ones are allowed (without chaining or redirects).

If the list stays empty, the system default of the respective mode applies. Use Reset to system default to restore it.

Windows and Linux

The sandbox follows the operating system, because a Windows shell speaks a different language than a Linux or macOS one. Everything else – the safety floor, the timeout and the output limit – stays identical:

Linux / macOSWindows
Execution/bin/sh -c "…"cmd.exe /d /s /c "…"
Read-only default commandspwd, ls, find, grep, cat …additionally dir, findstr, where, more, ver
Permitted redirect2>/dev/null, 2>/dev/stderr2>NUL (case-insensitive)
Additional blocked syntaxcommand substitution $(…), backticksvariable expansion %VAR% – a variable could smuggle in a command
System directories for absolute paths/bin, /usr/bin, /usr/local/bin, /sbin, /usr/sbin%SystemRoot%\System32, SysWOW64, PowerShell folder
Locked paths without approval/root, /etc/passwd, /homecredential stores such as %USERPROFILE%\.ssh or %APPDATA%\Microsoft\Credentials – project folders inside the profile stay readable

Command names are compared case-insensitively on Windows (DIR equals dir), and the safety floor contains the Windows counterparts of the Linux commands – for example del, rd, copy, format, reg, schtasks or powershell – so it is just as tight on both systems.

Per-Chat/Node Override

The global sandbox setting can be overridden per chat via the Sandbox pill and per workflow node in its properties. The options are: