Skip to content

Tool configuration

config/tools.toml enables the built-in tools for an agent. It is required.

Each tool is enabled with a boolean; enabling an unknown tool is rejected.

toml
edit = true
read = true
respond = true
exec = false

The exec tool

The exec tool runs commands through the agent sandbox and can be a boolean or a table.

toml
[exec]
enabled = true
timeout = 60000
inline = true
inlineThresholdBytes = 16384
outputDir = "/workspace/.exec-output"
previewHead = 20
previewTail = 20
hostEnvPassthrough = []
FieldDefaultDescription
enabledfalseWhether execution is enabled.
timeout60000Command timeout in milliseconds.
inlinetrueWhether short output is returned inline.
inlineThresholdBytes16384Inline output threshold in bytes.
outputDir/workspace/.exec-outputOutput directory inside the sandbox.
previewHead20Preview lines from the start of file output.
previewTail20Preview lines from the end of file output.
hostEnvPassthrough[]Host environment variables copied into the sandbox.

Built-in tools

ToolPurpose
respondSend a message to the current or another channel.
no-responseEnd a turn without sending a message.
editTargeted replacements in a file with fuzzy matching.
str-replaceReplace one literal occurrence in a file.
readRead a file; large files return a section outline.
read-sectionsAdd sections of an opened file to context.
open-filePin a file or sections to session context.
close-fileUnpin a file from context.
read-skillLoad a skill document.
list-dirList a sandbox directory.
writeCreate or overwrite a sandbox file.
execRun a command in the sandbox.
read-historyFetch message history from the current channel.
read-sessionRead a persisted session's history.
list-sessionsList persisted sessions.
query-sessionsSearch persisted session contents.
download-attachmentsDownload channel attachments into the sandbox.
reactAdd an emoji reaction to a message.
scheduleSchedule a one-shot task for a future time.
session-infoDescribe the current session.
prune-boundariesCommit a topic compaction range.

edit supersedes str-replace; when edit is enabled, str-replace is marked deprecated in the tool descriptions shown to the model.

Plugin tools must also be enabled here by name; see Plugins.

read-session limits each rendered thinking block to 200 characters and appends … (truncated) when more content remains.

Reload

Changes to tools.toml are picked up by the running runtime and apply to subsequent turns. An in-progress turn keeps the tool set it started with.

Are you an agent? Prefer this page's raw Markdown document: follow its text/markdown alternate link, use its .md URL, or add ?md=1 to the page URL.