Tools¶
Dial Code comes with 25+ built-in tools that extend its capabilities beyond simple text generation.
What Are Tools?¶
Tools are capabilities that Dial Code can invoke to interact with your system:
- Read and write files
- Execute shell commands
- Search the web
- Store persistent memory
- And more...
Tool Categories¶
File System¶
| Tool | Description |
|---|---|
read_file |
Read file contents |
write_file |
Create or modify files |
edit |
Smart code editing with diffs |
list_directory |
List directory contents |
glob |
Find files by pattern |
grep |
Search file contents |
Shell¶
| Tool | Description |
|---|---|
run_shell_command |
Execute terminal commands |
Web¶
| Tool | Description |
|---|---|
web_fetch |
Fetch URL contents |
web_search |
Search the web |
Memory¶
| Tool | Description |
|---|---|
save_memory |
Store persistent context |
todo_write |
Track tasks |
MCP (Model Context Protocol)¶
| Tool | Description |
|---|---|
mcp_tool |
Use external MCP servers |
How Tools Work¶
1. Model Requests Tool¶
Based on your request, Dial Code decides which tools to use:
2. Confirmation (if needed)¶
For sensitive operations, you'll be asked to confirm:
3. Execution¶
The tool runs and results are returned to the model.
4. Response¶
Dial Code incorporates the results into its response.
Viewing Available Tools¶
List all available tools:
Output shows:
- Tool name
- Description
- Whether confirmation is required
Tool Safety¶
Confirmation Required¶
These tools always require approval:
write_file- File modificationsrun_shell_command- Shell executionedit- Code changes
No Confirmation¶
These tools run automatically:
read_file- Reading fileslist_directory- Listing directoriesglob- Finding filesgrep- Searching content
Sandbox Mode¶
Enable sandboxing for additional safety:
In sandbox mode, file operations are restricted to the current directory.
Using Tools Directly¶
File References¶
Use @ to reference files:
Shell Passthrough¶
Use ! to run shell commands:
Extending with MCP¶
The Model Context Protocol (MCP) allows adding external tools:
{
"mcpServers": {
"database": {
"command": "mcp-server-database",
"args": ["--connection", "postgres://..."]
}
}
}
See MCP Integration for details.
Tool Output¶
Tool results can be:
- Displayed directly
- Summarized (for large outputs)
- Truncated (configurable)
Configure in settings:
Common Patterns¶
Exploring Code¶
Making Changes¶
Running Tests¶
Next Steps¶
- File System Tools - Detailed file operations
- Shell Tool - Command execution
- MCP Integration - External tools