ensure_repo
Clones a Git repository to a temporary directory for searching, reusing an existing clone if available. Call it first to prepare the repo for file searches and reads.
Instructions
Clone a Git repo to a temp directory (or reuse existing clone). Call this first before search_repo, read_file, or list_directory. Returns the clone path and status. Resets the 5-minute idle timer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Branch or ref to clone (default: default branch) | |
| repoUrl | Yes | Git repo URL (https:// or git@) |