File size: 1,223 Bytes
00537c6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | # code_signals_search_tool β Input / Output
Searches LLM-extracted code signals from GitHub repositories. This tool is the Step 4 fallback when README/SDE context is insufficient to judge relevance.
## Inputs
| Param | Type | Required | Default | Range | Meaning |
|---|---|---:|---|---|---|
| `query` | string | yes | β | β | Search query for code functionality. |
| `limit` | integer | no | 5 | 1β6 | Maximum results to return. |
| `page` | integer | no | 1 | β₯ 1 | Pagination. |
## Output
Returns an object with:
- `results` β list of code-signal hits; each hit contains:
- `title` β repository id / name
- `repo_url` β GitHub repository URL
- `repo_id` β repository identifier
- `content` β extracted "Code Summary" (function names, class names, imports, data formats, code summaries)
- `score` β relevance score
- `query` β echo of the query
## Usage constraints (verbatim from the source prompt)
- Use only when README and SDE context are insufficient to determine relevance.
- Reference file paths or function names; do not include full code excerpts.
- Read-only inspection β no execution, cloning, downloading, or testing (see `guardrails/read-only-no-execution.md`).
|