Overview
ADK-TS includes a comprehensive library of pre-built tools organized into three categories:- Default Tools - File operations, web access, and shell execution
- Common Tools - HTTP requests, user interaction, memory, and agent delegation
- Memory Tools - Advanced memory management operations
Default Tools
These tools provide fundamental file system and web operations.ReadTool
Read file contents from the filesystem.Path to the file to read
Line number to start reading from (0-based)
Number of lines to read
WriteTool
Write content to files.Path to the file to write
Content to write to the file
EditTool
Edit existing files with search and replace.Path to the file to edit
Text to search for
Text to replace with
Replace all occurrences (default: false)
GlobTool
Search for files matching patterns.Glob pattern (e.g., ”/*.ts”, “src//*.js”)
Directory to search in (defaults to current directory)
GrepTool
Search file contents using regex patterns.Regex pattern to search for
Directory to search in
File pattern to include (e.g., “.js”, ”.”)
BashTool
Execute terminal commands with security restrictions.Must be explicitly set to true
Security mode:
whitelist, sandboxed, or unrestrictedCommands allowed in whitelist mode (defaults to safe commands)
Docker image for sandboxed mode (default: alpine:latest)
Command timeout in milliseconds (default: 30000)
WebFetchTool
Fetch content from web URLs.URL to fetch
WebSearchTool
Perform web searches using Google.Search query
Number of results to return (default: 10)
Common Tools
Tools for HTTP requests, user interaction, and system operations.HttpRequestTool
Make HTTP requests to external APIs.URL to send the request to
HTTP method: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS (default: GET)
Request headers
Request body (typically JSON string)
URL query parameters
Request timeout in milliseconds (default: 10000)
FileOperationsTool
Comprehensive file system operations.Operation:
read, write, append, delete, exists, list, mkdirPath to file or directory
Content for write/append operations
File encoding (default: utf8)
UserInteractionTool
Prompt users for input during agent execution.Message to display to the user
Input type:
text, confirmation, choiceGetUserChoiceTool
Present multiple choice options to users.Question to ask the user
Available options
GoogleSearchTool
Google search with grounding (requires Google AI).RecallMemoryTool
Recall information from conversation memory.Search query for memory recall
PreloadMemoryTool
Preload memory context at the start of a conversation.LoadArtifactsTool
Load files attached to the session.Name of the artifact to load
AgentTool
Delegate tasks to other agents.TransferToAgentTool
Transfer conversation control to another agent.ExitLoopTool
Exit from loop agent iterations.Memory Tools
Advanced memory management for agents.WriteMemoryTool
Store information in long-term memory.Content to store in memory
Additional metadata for the memory entry
ForgetMemoryTool
Remove information from memory.Query to identify memories to forget
GetSessionDetailsTool
Retrieve current session information.- Session ID
- User ID
- App name
- Creation time
- Last activity
- Session metadata
Using Multiple Tools
Combine tools for powerful agent capabilities:Tool Security Considerations
File System Tools
- Use
basePathoption inFileOperationsToolto restrict access - Never expose tools with unrestricted file system access to untrusted users
- Validate file paths to prevent directory traversal attacks
Bash Tool
- Never use
unrestrictedmode in production - Prefer
whitelistmode with minimal command set - Use
sandboxedmode for untrusted operations (requires Docker) - Set appropriate timeouts to prevent resource exhaustion
HTTP Tools
- Validate URLs before making requests
- Set reasonable timeouts
- Be cautious with user-provided URLs
- Consider rate limiting for external API calls
Next Steps
Creating Tools
Learn how to create custom tools
MCP Integration
Connect to external MCP servers