search_code
Search for code within Git repositories to locate specific files and lines matching your query across branches and commits.
Instructions
Search for code in a repository. Returns matching files and lines.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier (GitLab: "group/project" or ID, GitHub: "owner/repo") | |
| query | Yes | Search query to find in code | |
| ref | No | Branch or commit to search in | |
| page | No | Page number (default: 1) | |
| per_page | No | Items per page (default: 20, max: 100) |