🛠️ Tools Reference
Code Puppy agents use tools to interact with your system. Each agent has access to a specific set of tools based on its purpose.
Use /tools to see what tools are available to the current agent.
📁 File Operations
Tools for reading, writing, and managing files.
List files and directories with intelligent filtering. Automatically ignores common build artifacts and cache directories.
Parameters:
directory- Path to list (default: current directory)recursive- Whether to list subdirectories (default: True)
Read file contents with optional line-range selection for handling large files.
Parameters:
file_path- Path to the file to readstart_line- Starting line number (1-based, optional)num_lines- Number of lines to read (optional)
Comprehensive file editing supporting multiple strategies:
- ContentPayload - Create or overwrite a file with content
- ReplacementsPayload - Targeted text replacements
- DeleteSnippetPayload - Remove specific text snippets
Safely delete a file with automatic diff generation showing what was removed.
Recursively search for text patterns using ripgrep. Supports regex and various flags.
Parameters:
search_string- Pattern to search for (supports rg flags)directory- Root directory for search (default: current)
Detailed file operations guide →
💻 System Operations
Tools for executing commands and interacting with the system.
Execute a shell command with streaming output, timeout handling, and safety confirmations.
Parameters:
command- The shell command to executecwd- Working directory (optional)timeout- Inactivity timeout in seconds (default: 60)
Returns: success, stdout, stderr, exit_code, execution_time
🤖 Agent Operations
Tools for agent reasoning and sub-agent invocation.
Share the agent's current thought process and planned actions. Essential for transparency and debugging.
Parameters:
reasoning- Current thought process and analysisnext_steps- Planned upcoming actions (optional)
List all available agents that can be invoked.
Invoke a specific sub-agent with a given prompt. Useful for delegating specialized tasks.
Parameters:
agent_name- Name of the agent to invokeprompt- The prompt to send to the agentsession_id- Optional session ID for conversation memory
🌐 Browser Automation Tools
Available to the qa-kitten agent for browser automation.
These tools are only available when using the qa-kitten agent. Switch with /agent qa-kitten.
Browser Control
browser_initialize- Start a browser sessionbrowser_close- Close the browserbrowser_status- Check browser status
Navigation
browser_navigate- Navigate to a URLbrowser_go_back- Go back in historybrowser_go_forward- Go forward in historybrowser_reload- Reload the page
Interactions
browser_click- Click an elementbrowser_set_text- Type text into an inputbrowser_get_text- Get text from an elementbrowser_select- Select from dropdownbrowser_check- Check/uncheck checkbox
Element Location
browser_find_by_role- Find by ARIA rolebrowser_find_by_text- Find by text contentbrowser_find_by_label- Find by label
Visual
browser_screenshot_analyze- Take and analyze screenshots
Full browser tools reference →
Tools by Agent
| Agent | Tools |
|---|---|
code-puppy |
All file ops, shell, grep, agent tools |
planning-agent |
File ops, reasoning tools |
code-reviewer |
File ops, grep, reasoning |
qa-kitten |
All above + 30+ browser tools |
agent-creator |
File ops (for creating agent configs) |