Tool reference

Tools you can use

Find capabilities for files, programs, databases and web services. Each project can enable additional private tools.

Ask for the result you want

You usually do not need to memorize tool names. Describe the task and identify the relevant folder or service. If the model cannot find a capability, ask it to search installed plugins.

Use the groups below when you need an exact name. For private tools and workflows, see Add plugins and skills.

Approvals and availability

read tools inspect data. write tools make changes and require approval. External programs also follow the project’s execution settings.

Check the Tools window for what is available on your installation. Some tools need an installed command, a database driver or a configured service.

Files and text

ToolAccessWhat it does
apply_patchwriteApply several exact-text edits to a file. Read its current content first.
apply_unified_diffwriteApply a unified diff to a file, with an optional dry run before saving.
compare_filesreadCompare two files and show the changed lines.
copy_filewriteCopy one workspace file without overwriting the destination.
create_directorywriteCreate a directory and missing parents inside the workspace.
create_filewriteCreate a new text file; existing files are kept.
delete_directorywriteDelete an empty workspace directory, or recursively delete it when explicitly requested.
delete_filewriteDelete one file from a workspace.
file_inforeadCheck whether a path exists and see its size and modification time.
find_filesreadFind files or folders by name.
html_form_fieldsreadExtract form field names and types from an HTML file, including large forms.
list_directoryreadList files and directories at a workspace-relative path.
move_directorywriteMove or rename one directory without overwriting the destination.
move_filewriteMove or rename one file without overwriting the destination.
read_filereadRead a file or a selected range of numbered lines.
replace_textwriteReplace a specific piece of text while keeping the rest of the file unchanged.
search_textreadFind text or a regular expression in workspace files.
unzipwriteExtract a bounded ZIP into a new directory without overwriting.
write_filewriteReplace the complete contents of an existing text file.
xml_validatereadCheck that an XML file is well-formed.
xml_validate_xsdreadLinuxCheck an XML file against its XSD rules using xmllint.
zipwriteCreate a ZIP from a workspace directory without overwriting.

Programs and tests

ToolAccessWhat it does
docker_logsreadRead recent logs from the container configured for this project.
docker_restartwriteRestart the container configured for this project.
docker_statusreadCheck whether the configured container is running and whether it reports healthy.
exec_commandprocess policyRun an allowed program using the project’s execution and approval settings.
run_project_testsprocess policyRun the project’s configured test command.
run_tcl_fileprocess policyExecute a Tcl file from the workspace using the configured interpreter.

Web pages and services

ToolAccessWhat it does
http_deletewriteSend a DELETE request to a URL or named HTTP profile.
http_getreadFetch a complete HTTP(S) URL, including a local service, or use a named HTTP profile.
http_patchwriteSend a JSON PATCH request to a URL or named HTTP profile.
http_postwriteSend a JSON POST request to a URL or named HTTP profile.
http_putwriteSend a JSON PUT request to a URL or named HTTP profile.
open_browserwrite Linux, WindowsOpen a URL in your default browser. This does not give the model a screenshot.
web_fetchreadFetch a public HTTPS page as readable text or HTML. Private addresses are excluded.
web_searchreadSearch the web using the configured search service.

Database connections

ToolAccessWhat it does
database_describereadShow columns, primary keys, and foreign keys for a database table.
database_executewriteRun a database statement that can change data, using an approved connection.
database_queryreadRun a read-only query using a configured database connection.
database_tablesreadList tables and views through a configured TDBC profile.

Sqitch migrations

ToolAccessWhat it does
sqitch_addwriteAdd one change to the default plan and generate its standard scripts.
sqitch_deploywriteDeploy pending changes using project.ini Sqitch.database, or Sqitch's default target.
sqitch_logreadShow 1–100 concise deployment events using project.ini Sqitch.database, or Sqitch's default target.
sqitch_planreadShow 1–500 planned changes in a concise, deterministic format.
sqitch_revertwriteRevert to one required change or tag using project.ini Sqitch.database, or Sqitch's default target.
sqitch_reworkwriteRework one existing change in the default plan.
sqitch_showreadInspect one change, tag, or deploy/revert/verify script.
sqitch_statusreadShow deployment status using project.ini Sqitch.database, or Sqitch's default target.
sqitch_tagwriteTag one explicit change in the default plan.
sqitch_verifywriteRun verification scripts using project.ini Sqitch.database, or Sqitch's default target.

Fossil version control

ToolAccessWhat it does
fossil_addwriteSchedule one existing file for addition to the next Fossil commit.
fossil_branch_closewriteMark one local Fossil branch closed without deleting its history.
fossil_branch_inforeadShow metadata for one named Fossil branch.
fossil_branch_newwriteCreate one local branch from a named basis without switching to it.
fossil_branch_reopenwriteReopen one named closed Fossil branch.
fossil_branch_switchwriteSwitch the checkout to one branch while retaining uncommitted changes.
fossil_branchesreadList all branches, including closed branches.
fossil_changesreadShow the files changed in the Fossil checkout.
fossil_clonewriteClone a public HTTP(S) repository into a new repository database and checkout.
fossil_commitwriteCommit all checkout changes locally with a required message.
fossil_diffreadShow code changes in the checkout or a selected file.
fossil_extrasreadList unmanaged files using the checkout's ignore policy.
fossil_inforeadShow checkout and checked-out version metadata.
fossil_lsreadList files tracked by Fossil and their change status.
fossil_mergewriteMerge one branch or check-in and leave the result uncommitted.
fossil_pullwritePull public changes from the configured default remote.
fossil_pushwritePush public changes to the configured default remote.
fossil_redowriteReapply the most recently undone change to one path.
fossil_removewriteMark one file removed and delete it from disk.
fossil_revertwriteDiscard uncommitted changes in one file with Fossil undo recording.
fossil_stash_listreadList all stash entries and their files.
fossil_stash_popwriteApply and remove the newest stash entry.
fossil_stash_savewriteStash all checkout changes with a required comment.
fossil_statusreadShow checkout status, local changes, and metadata.
fossil_timelinereadShow 1–100 recent check-ins in concise form.
fossil_undowriteRestore one path from Fossil's single-level undo snapshot.
fossil_updatewriteUpdate to the unique local descendant leaf without autosync.

History and other helpers

ToolAccessWhat it does
load_project_instructionsreadRead the project guidance that applies to a selected folder or file.
load_skillreadLoad a named workflow’s instructions.
model_inforeadShow the configured model; optionally check server capabilities.
random_stringreadGenerate bounded non-cryptographic random test data.
read_artifactread · built-inRead a saved large-result snapshot.
read_history_messageread · built-inRead an earlier saved message or tool result.
search_historyread · built-inFind original evidence in the current project’s saved conversation.
system_inforeadReport OS, architecture, Tcl, threads, executable, and workspace.