Corral
Learn > Documentation

Tools: Built-in

Corral ships with built-in tools that give agents the ability to read and write files, execute code, query Microsoft Graph, render rich content, and create sub-assistants. These are available to every agent without additional configuration.


File System Tools

Agents can read, write, list, check, and delete files in the virtual file system.

ToolWhat It Does
file_readRead the contents of a file
file_writeWrite content to a file (creates or overwrites)
file_listList files and directories at a path
file_existsCheck whether a file exists
file_deleteDelete a file

File System Scopes

The virtual file system has four scopes, each with a different lifetime:

ScopePathLifetimePurpose
Workspace/workspace/PersistentUser files that survive across conversations (default)
Session/session/Conversation-scopedTemporary data for the current conversation
Config/config/Read-onlyApp configuration files set by admins
Temp/tmp/Request-scopedEphemeral scratch space

File changes are broadcast to connected clients in real time — when an agent writes a file, the user sees it appear in the workspace panel immediately.


Code Execution Tools

Agents can execute code in a sandboxed environment.

ToolWhat It Does
code_executeRun code in a sandboxed container and return output
code_capabilitiesReport what the execution environment supports

Execution Environment

  • Runtime: Bash 5.x with coreutils
  • Pre-installed: curl, wget, jq, git
  • Timeout: 60 seconds default, 220 seconds maximum
  • Isolation: Azure Container Apps Dynamic Sessions — each execution runs in an isolated container
  • File access: Files from the workspace are automatically staged into the execution environment

The code execution sandbox is completely isolated from the Corral platform and your Azure resources. Agents cannot use code execution to access infrastructure, databases, or services — only to process data and return results.


Microsoft Graph Tools

Agents can interact with Microsoft Graph to query users, groups, and email.

ToolWhat It Does
graph_query_usersSearch for users in your Entra ID directory
graph_get_userGet details for a specific user
graph_list_groupsList groups in your directory
graph_list_group_membersList members of a specific group
graph_list_messagesList email messages
graph_move_messageMove an email to a different folder
graph_mark_readMark an email as read
graph_send_messageSend an email
graph_queryRun an arbitrary Microsoft Graph query

Graph tools use delegated permissions — they act on behalf of the signed-in user and respect that user’s existing access controls. An agent can only access what the user themselves could access.

This section is a work in progress.


Rich Content Tools

Agents can render visual content that displays in the canvas.

ToolWhat It Does
render_chartGenerate a chart visualization
render_mermaidRender a Mermaid diagram

Rich content renders in the canvas panel alongside the conversation.


Agent Composition Tools

ToolWhat It Does
create_sub_assistantCreate a new sub-assistant with its own workspace, file system, and conversation state

See Assistants & Sub-Assistants → for how sub-assistants work.


Data Retrieval Tools

ToolWhat It Does
query_stored_resultRetrieve a previously stored tool result by reference (used for large results that were tiered to storage)
current_documentsAccess documents attached to the current conversation

Tool Loading Modes

Built-in tools can be loaded in two modes:

  • Prebuilt — all available tools are loaded at the start of every turn. The agent can use any tool at any time.
  • Dynamic — tools are selected based on the incoming message. Only relevant tools are loaded, reducing context window usage.

The default Core Assistant uses prebuilt loading with dynamic tool selection available.