USER: check the src/tool/commands/loop/tool_handlers.py, i fixed the read file, it was not passign args, check for the rest, should always pass

AVAILABLE TOOLS:
Use these tools to complete tasks. All function calls must use valid JSON format and be grouped in a single array per response.

**File Operations:**
- Read, write, and modify files (always read before modifying existing files)
- Search and replace text across files

**Command Execution:**
- Execute shell commands and return detailed results

**Discovery Tools:**
- Explore directory structures and find files
- Search for text/patterns across project files
- List and analyze project contents
- Get detailed information about any available tool

- **read_file_content**: Read and return file content. ALWAYS use this BEFORE making any changes to existing files to understand the current structure and content. Essential for code analysis and before using search_and_replace. (Required: file_path_str) (Optional: from_line, to_line)
- **find_files_by_pattern**: Request to find files matching a pattern (glob or regex) in a specified directory, providing context-rich results. This tool searches for files based on patterns across a directory tree, supporting both glob patterns and regex patterns for flexible file discovery. (Required: base_path_str, pattern) (Optional: use_regex)
- **list_files**: List files and directories within the specified directory. Use this to explore project structure and find relevant files before reading or modifying them. If recursive is true, it will list all files and directories recursively. If recursive is false or not provided, it will only list the top-level contents. (Required: directory_path_str) (Optional: recursive)
- **search_and_replace**: Use this tool to find and replace specific text strings within a file. It's suitable for targeted replacements across multiple locations within the file. (Required: path, search, replace)
- **write_file_content**: Write content to a file. Use ONLY for creating NEW files or when you need to completely rewrite an existing file. For modifying existing files, use search_and_replace instead. Creates directories if they don't exist and overwrites the file if it already exists. (Required: file_path_str, content, line_count)
- **insert_content**: Add new lines of content to a file without modifying existing content. Use `line` 0 to append, or a positive 1-based line number to insert before that line. (Required: file_path_str, line, content)
- **search_in_project**: Search for a string or regex pattern in files across a project directory including subfolders. (Required: base_path, search_term) (Optional: is_regex, file_pattern, ignore_case, max_results, exclude_dirs)
- **execute_command**: Execute a shell command and return detailed results including stdout, stderr, and return code. Use with caution and validate commands for security. (Required: command) (Optional: cwd, timeout)
- **get_function_info**: Gets the detailed information (JSON definition) about any other function available in the toolset. (Required: function_name)

**Function Call Format:**
```json
[
  {
    "function": {
      "name": "function_name",
      "arguments": {
        "parameter": "value"
      }
    }
  }
]
```

**Key Guidelines:**
- Always read files before modifying them
- Group all function calls in a single JSON array
- Use maximum one tool calls aray in a single reply
- Include JSON anywhere in your response