Skip to main content

Built-in Tools

Mercury has a built-in toolset it can use during conversations. These are not CLI commands — the agent decides when to call them.

Filesystem

ToolWhat it doesParameters
read_fileRead file contentspath
write_fileWrite to an existing filepath, content
create_fileCreate a new file (creates parent dirs)path, content
edit_fileSearch and replace text in a filepath, old_string, new_string
list_dirList directory contentspath
delete_fileDelete a filepath
send_fileSend file to user (Telegram upload)path
approve_scopeRequest read/write access to a directorypath, mode

Messaging

ToolWhat it doesParameters
send_messageSend a message to approved Telegram recipientscontent

Shell

ToolWhat it doesParameters
run_commandExecute a shell commandcommand
cdChange working directory (persists across calls)path
approve_commandPermanently approve a command typecommand (e.g. "curl")

Git

ToolWhat it does
git_statusWorking tree status
git_diffShow file changes
git_logCommit history
git_addStage files
git_commitCreate a commit
git_pushPush to remote (needs approval)

Web, Skills, Scheduler, System

ToolWhat it doesCategory
fetch_urlFetch a URL and return content (HTML stripped)Web
install_skillInstall a skill from URL or contentSkills
list_skillsList installed skillsSkills
use_skillInvoke a skill by nameSkills
schedule_taskSchedule recurring (cron) or one-shot (delay) taskScheduler
list_scheduled_tasksView all scheduled tasksScheduler
cancel_scheduled_taskCancel a scheduled taskScheduler
budget_statusCheck token budget usageSystem
ask_userAsk the user a question with choices (CLI: arrow menu, Telegram: inline buttons)System

Sub-Agent Delegation

ToolWhat it doesParameters
delegate_taskSpawn a sub-agent with an isolated contexttask, workingDirectory?, priority?, allowedTools?
list_agentsList active sub-agents and their status
stop_agentStop a sub-agent (or all)agentId ("a1" or "all")

Spotify

These tools are available when Spotify is connected. Search and info tools are read-only; playback tools require Spotify Premium.

ToolWhat it doesParameters
spotify_searchSearch for tracks, artists, albums, playlistsquery, type?, limit?
spotify_playPlay a track, album, or playlisturi?, deviceId?
spotify_pausePause playbackdeviceId?
spotify_nextSkip to next track
spotify_previousSkip to previous track
spotify_now_playingShow currently playing track info
spotify_devicesList available playback devices
spotify_queueAdd a track to the playback queueuri
spotify_likeSave a track to your librarytrackId
spotify_volumeSet playback volumepercent (0–100)
spotify_shuffleToggle shufflestate (boolean)
spotify_repeatSet repeat modestate (off/track/context)
spotify_top_tracksGet user's top trackstimeRange?, limit?
spotify_playlistsGet user's playlists