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
| Tool | Access | What it does |
apply_patch | write | Apply several exact-text edits to a file. Read its current content first. |
apply_unified_diff | write | Apply a unified diff to a file, with an optional dry run before saving. |
compare_files | read | Compare two files and show the changed lines. |
copy_file | write | Copy one workspace file without overwriting the destination. |
create_directory | write | Create a directory and missing parents inside the workspace. |
create_file | write | Create a new text file; existing files are kept. |
delete_directory | write | Delete an empty workspace directory, or recursively delete it when explicitly requested. |
delete_file | write | Delete one file from a workspace. |
file_info | read | Check whether a path exists and see its size and modification time. |
find_files | read | Find files or folders by name. |
html_form_fields | read | Extract form field names and types from an HTML file, including large forms. |
list_directory | read | List files and directories at a workspace-relative path. |
move_directory | write | Move or rename one directory without overwriting the destination. |
move_file | write | Move or rename one file without overwriting the destination. |
read_file | read | Read a file or a selected range of numbered lines. |
replace_text | write | Replace a specific piece of text while keeping the rest of the file unchanged. |
search_text | read | Find text or a regular expression in workspace files. |
unzip | write | Extract a bounded ZIP into a new directory without overwriting. |
write_file | write | Replace the complete contents of an existing text file. |
xml_validate | read | Check that an XML file is well-formed. |
xml_validate_xsd | readLinux | Check an XML file against its XSD rules using xmllint. |
zip | write | Create a ZIP from a workspace directory without overwriting. |
Programs and tests
| Tool | Access | What it does |
docker_logs | read | Read recent logs from the container configured for this project. |
docker_restart | write | Restart the container configured for this project. |
docker_status | read | Check whether the configured container is running and whether it reports healthy. |
exec_command | process policy | Run an allowed program using the project’s execution and approval settings. |
run_project_tests | process policy | Run the project’s configured test command. |
run_tcl_file | process policy | Execute a Tcl file from the workspace using the configured interpreter. |
Web pages and services
| Tool | Access | What it does |
http_delete | write | Send a DELETE request to a URL or named HTTP profile. |
http_get | read | Fetch a complete HTTP(S) URL, including a local service, or use a named HTTP profile. |
http_patch | write | Send a JSON PATCH request to a URL or named HTTP profile. |
http_post | write | Send a JSON POST request to a URL or named HTTP profile. |
http_put | write | Send a JSON PUT request to a URL or named HTTP profile. |
open_browser | write Linux, Windows | Open a URL in your default browser. This does not give the model a screenshot. |
web_fetch | read | Fetch a public HTTPS page as readable text or HTML. Private addresses are excluded. |
web_search | read | Search the web using the configured search service. |
Database connections
| Tool | Access | What it does |
database_describe | read | Show columns, primary keys, and foreign keys for a database table. |
database_execute | write | Run a database statement that can change data, using an approved connection. |
database_query | read | Run a read-only query using a configured database connection. |
database_tables | read | List tables and views through a configured TDBC profile. |
Sqitch migrations
| Tool | Access | What it does |
sqitch_add | write | Add one change to the default plan and generate its standard scripts. |
sqitch_deploy | write | Deploy pending changes using project.ini Sqitch.database, or Sqitch's default target. |
sqitch_log | read | Show 1–100 concise deployment events using project.ini Sqitch.database, or Sqitch's default target. |
sqitch_plan | read | Show 1–500 planned changes in a concise, deterministic format. |
sqitch_revert | write | Revert to one required change or tag using project.ini Sqitch.database, or Sqitch's default target. |
sqitch_rework | write | Rework one existing change in the default plan. |
sqitch_show | read | Inspect one change, tag, or deploy/revert/verify script. |
sqitch_status | read | Show deployment status using project.ini Sqitch.database, or Sqitch's default target. |
sqitch_tag | write | Tag one explicit change in the default plan. |
sqitch_verify | write | Run verification scripts using project.ini Sqitch.database, or Sqitch's default target. |
Fossil version control
| Tool | Access | What it does |
fossil_add | write | Schedule one existing file for addition to the next Fossil commit. |
fossil_branch_close | write | Mark one local Fossil branch closed without deleting its history. |
fossil_branch_info | read | Show metadata for one named Fossil branch. |
fossil_branch_new | write | Create one local branch from a named basis without switching to it. |
fossil_branch_reopen | write | Reopen one named closed Fossil branch. |
fossil_branch_switch | write | Switch the checkout to one branch while retaining uncommitted changes. |
fossil_branches | read | List all branches, including closed branches. |
fossil_changes | read | Show the files changed in the Fossil checkout. |
fossil_clone | write | Clone a public HTTP(S) repository into a new repository database and checkout. |
fossil_commit | write | Commit all checkout changes locally with a required message. |
fossil_diff | read | Show code changes in the checkout or a selected file. |
fossil_extras | read | List unmanaged files using the checkout's ignore policy. |
fossil_info | read | Show checkout and checked-out version metadata. |
fossil_ls | read | List files tracked by Fossil and their change status. |
fossil_merge | write | Merge one branch or check-in and leave the result uncommitted. |
fossil_pull | write | Pull public changes from the configured default remote. |
fossil_push | write | Push public changes to the configured default remote. |
fossil_redo | write | Reapply the most recently undone change to one path. |
fossil_remove | write | Mark one file removed and delete it from disk. |
fossil_revert | write | Discard uncommitted changes in one file with Fossil undo recording. |
fossil_stash_list | read | List all stash entries and their files. |
fossil_stash_pop | write | Apply and remove the newest stash entry. |
fossil_stash_save | write | Stash all checkout changes with a required comment. |
fossil_status | read | Show checkout status, local changes, and metadata. |
fossil_timeline | read | Show 1–100 recent check-ins in concise form. |
fossil_undo | write | Restore one path from Fossil's single-level undo snapshot. |
fossil_update | write | Update to the unique local descendant leaf without autosync. |
History and other helpers
| Tool | Access | What it does |
load_project_instructions | read | Read the project guidance that applies to a selected folder or file. |
load_skill | read | Load a named workflow’s instructions. |
model_info | read | Show the configured model; optionally check server capabilities. |
random_string | read | Generate bounded non-cryptographic random test data. |
read_artifact | read · built-in | Read a saved large-result snapshot. |
read_history_message | read · built-in | Read an earlier saved message or tool result. |
search_history | read · built-in | Find original evidence in the current project’s saved conversation. |
system_info | read | Report OS, architecture, Tcl, threads, executable, and workspace. |